This repository has been archived by the owner on Oct 14, 2024. It is now read-only.
Bump styfle/cancel-workflow-action from 0.11.0 to 0.12.0 #115
Workflow file for this run
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 | |
on: pull_request | |
jobs: | |
cancel: | |
name: 'Cancel Previous Runs' | |
runs-on: ubuntu-latest | |
timeout-minutes: 3 | |
steps: | |
- name: Get all workflow ids and set to env variable | |
run: echo ::set-env name=WORKFLOW_IDS_TO_CANCEL::$(curl https://api.github.com/repos/${GITHUB_REPOSITORY}/actions/workflows -s | jq -r '.workflows | map(.id|tostring) | join(",")') | |
- uses: styfle/cancel-workflow-action@0.12.0 | |
with: | |
workflow_id: ${{ env.WORKFLOW_IDS_TO_CANCEL }} | |
access_token: ${{ secrets.GITHUB_TOKEN }} |