Bump pygithub from 1.58.2 to 2.3.0 #25
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: Cancel outdated workflow runs | |
# For each branch (i.e. PR) we're only interested in the latest commit to be tested | |
# this job cancels any previous workflow runs still in progress on the same branch | |
# freeing up spots in the queue for the most recent commits | |
# and saving some trees along the way | |
# run on pull_request_target because we need write access to the GItHub API | |
# don't run any code from PR here! | |
on: [push, pull_request_target] | |
jobs: | |
cancel: | |
name: 'Cancel Outdated Workflow Runs' | |
runs-on: ubuntu-latest | |
timeout-minutes: 3 | |
steps: | |
- uses: styfle/[email protected] | |
with: | |
workflow_id: 'integration-tests.yml,k8s-testing.yml,unit-tests.yml' | |
access_token: ${{ github.token }} |