diff --git a/.gitea/workflows/dev.yaml b/.gitea/workflows/dev.yaml index f053e513..1f01d64d 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 779f8b9b..f2150c42 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: