name: Mark stable commit concurrency: group: mark-stable-${{ github.repository }}-main cancel-in-progress: true on: push: tags: - 'v*' jobs: mark-stable: runs-on: ubuntu-latest timeout-minutes: 330 permissions: actions: read contents: write steps: - name: Checkout repository uses: actions/checkout@v4 with: fetch-depth: 0 fetch-tags: true # We need tags and main history for version comparison - name: Check whether tagged commit is on main id: branch-check run: bash scripts/github/common/check-tagged-commit-on-main.sh - name: Wait for CI success on main for this commit if: steps.branch-check.outputs.is_on_main == 'true' env: GH_TOKEN: ${{ github.token }} run: bash scripts/github/mark-stable/wait-for-main-ci-success.sh - name: Move 'stable' tag only if this version is the highest if: steps.branch-check.outputs.is_on_main == 'true' run: bash scripts/github/mark-stable/mark-stable-if-highest-version.sh