Cancel stale CI executions when CI is re-triggered in the same branch… #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Add to backporting project | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
add-to-backporting-project: | |
if: "!contains(github.event.push.head_commit.message, '[Next only]')" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: coursier/cache-action@v6 | |
- uses: VirtusLab/[email protected] | |
- run: scala-cli ./project/scripts/addToBackportingProject.scala -- ${{ github.sha }} | |
env: | |
GRAPHQL_API_TOKEN: ${{ secrets.GRAPHQL_API_TOKEN }} | |