From 076e23e75e9cf28f7a470d2a5865ff0a3e941a1d Mon Sep 17 00:00:00 2001 From: Dawson Date: Mon, 27 Apr 2026 10:30:58 -0400 Subject: [PATCH] Adding copr webhook to tell it to rebuild --- .gitea/workflows/update-readme-version.yaml | 23 +++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.gitea/workflows/update-readme-version.yaml b/.gitea/workflows/update-readme-version.yaml index ebe6358..9b91d4f 100644 --- a/.gitea/workflows/update-readme-version.yaml +++ b/.gitea/workflows/update-readme-version.yaml @@ -1,6 +1,9 @@ name: Update README version on: + push: + branches: + - master schedule: - cron: "17 2 * * *" workflow_dispatch: @@ -12,6 +15,7 @@ jobs: update-readme-version: runs-on: ubuntu-latest env: + COPR_WEBHOOK_URL: ${{ secrets.COPR_WEBHOOK_URL }} TARBALL_URL: https://packages.element.io/desktop/install/linux/glibc-x86-64/element-desktop.tar.gz steps: - name: Check out repository @@ -55,6 +59,7 @@ jobs: README.md - name: Commit and push update + id: commit if: steps.version.outputs.latest != steps.version.outputs.current shell: bash run: | @@ -65,3 +70,21 @@ jobs: git add README.md git commit -m "docs: update tracked Element Desktop version to ${{ steps.version.outputs.latest }}" git push + echo "pushed=true" >> "$GITHUB_OUTPUT" + + - name: Trigger COPR build + if: gitea.event_name == 'push' && steps.commit.outputs.pushed != 'true' + shell: bash + run: | + set -euo pipefail + + if [ -z "${COPR_WEBHOOK_URL:-}" ]; then + echo "COPR_WEBHOOK_URL secret is not set" >&2 + exit 1 + fi + + curl --fail --show-error --silent \ + --retry 3 \ + --retry-all-errors \ + -X POST \ + "$COPR_WEBHOOK_URL"