From 55a8da57f1a4b21ca19003ce98464522901bc367 Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Mon, 3 Apr 2023 12:05:18 +0200 Subject: [PATCH] refactor action location --- .gitea/workflows/dev.yaml | 6 +++--- .gitea/workflows/prod.yaml | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/dev.yaml b/.gitea/workflows/dev.yaml index f053e51..1f01d64 100644 --- a/.gitea/workflows/dev.yaml +++ b/.gitea/workflows/dev.yaml @@ -6,12 +6,12 @@ on: - dev concurrency: - group: ${{ github.workflow }}-${{ github.ref }} + group: ${{ gitea.workflow }}-${{ gitea.ref }} cancel-in-progress: true jobs: 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 timeout-minutes: 5 steps: @@ -28,7 +28,7 @@ jobs: rsync -azr --delete ./ /opt/data/webdata/gcg-website-dev/ - name: notification - uses: https://github.com/yamaks2306/telegram-notification@main + uses: actions/telegram-action@main if: always() with: chat_id: ${{ secrets.TG_CHAT_ID }} diff --git a/.gitea/workflows/prod.yaml b/.gitea/workflows/prod.yaml index 779f8b9..f2150c4 100644 --- a/.gitea/workflows/prod.yaml +++ b/.gitea/workflows/prod.yaml @@ -5,15 +5,15 @@ on: branches: - master issue_comment: - types: [created, edited, deleted] + types: [created] concurrency: - group: ${{ github.workflow }}-${{ github.ref }} + group: ${{ gitea.workflow }}-${{ gitea.ref }} cancel-in-progress: true jobs: 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 timeout-minutes: 5 steps: @@ -30,14 +30,14 @@ jobs: rsync -azr --delete ./ /opt/data/webdata/gcg-website/ - name: notification - uses: https://github.com/yamaks2306/telegram-notification@main + uses: actions/telegram-action@main if: always() with: chat_id: ${{ secrets.TG_CHAT_ID }} token: ${{ secrets.TG_TOKEN }} include_commit_info: false 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 timeout-minutes: 5 steps: @@ -53,7 +53,7 @@ jobs: pagefind --source=. rsync -azr --delete ./ /opt/data/webdata/gcg-website-test/ 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 timeout-minutes: 5 steps: