refactor action location

This commit is contained in:
Denys Konovalov 2023-04-03 12:05:18 +02:00
parent 280f61cb1f
commit 55a8da57f1
2 changed files with 9 additions and 9 deletions

View File

@ -6,12 +6,12 @@ on:
- dev - dev
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.ref }} group: ${{ gitea.workflow }}-${{ gitea.ref }}
cancel-in-progress: true cancel-in-progress: true
jobs: jobs:
dev-build: dev-build:
if: github.repository == 'gcg/gcg-website' && github.event_name == 'push' if: gitea.repository == 'gcg/gcg-website' && gitea.event_name == 'push'
runs-on: act-runner-user runs-on: act-runner-user
timeout-minutes: 5 timeout-minutes: 5
steps: steps:
@ -28,7 +28,7 @@ jobs:
rsync -azr --delete ./ /opt/data/webdata/gcg-website-dev/ rsync -azr --delete ./ /opt/data/webdata/gcg-website-dev/
- name: notification - name: notification
uses: https://github.com/yamaks2306/telegram-notification@main uses: actions/telegram-action@main
if: always() if: always()
with: with:
chat_id: ${{ secrets.TG_CHAT_ID }} chat_id: ${{ secrets.TG_CHAT_ID }}

View File

@ -5,15 +5,15 @@ on:
branches: branches:
- master - master
issue_comment: issue_comment:
types: [created, edited, deleted] types: [created]
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.ref }} group: ${{ gitea.workflow }}-${{ gitea.ref }}
cancel-in-progress: true cancel-in-progress: true
jobs: jobs:
prod-build: prod-build:
if: github.repository == 'gcg/gcg-website' && github.event_name == 'push' if: gitea.repository == 'gcg/gcg-website' && gitea.event_name == 'push'
runs-on: act-runner-user runs-on: act-runner-user
timeout-minutes: 5 timeout-minutes: 5
steps: steps:
@ -30,14 +30,14 @@ jobs:
rsync -azr --delete ./ /opt/data/webdata/gcg-website/ rsync -azr --delete ./ /opt/data/webdata/gcg-website/
- name: notification - name: notification
uses: https://github.com/yamaks2306/telegram-notification@main uses: actions/telegram-action@main
if: always() if: always()
with: with:
chat_id: ${{ secrets.TG_CHAT_ID }} chat_id: ${{ secrets.TG_CHAT_ID }}
token: ${{ secrets.TG_TOKEN }} token: ${{ secrets.TG_TOKEN }}
include_commit_info: false include_commit_info: false
test-build: test-build:
if: github.repository == 'gcg/gcg-website' && github.event_name == 'push' if: gitea.repository == 'gcg/gcg-website' && gitea.event_name == 'push'
runs-on: act-runner-user runs-on: act-runner-user
timeout-minutes: 5 timeout-minutes: 5
steps: steps:
@ -53,7 +53,7 @@ jobs:
pagefind --source=. pagefind --source=.
rsync -azr --delete ./ /opt/data/webdata/gcg-website-test/ rsync -azr --delete ./ /opt/data/webdata/gcg-website-test/
auto-rebuild: auto-rebuild:
if: github.repository == 'gcg/gcg-website' && github.event.issue.number == 219 if: gitea.repository == 'gcg/gcg-website' && gitea.event.issue.number == 219
runs-on: act-runner-user runs-on: act-runner-user
timeout-minutes: 5 timeout-minutes: 5
steps: steps: