Log metrics #2
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
# Cancel workflow runs associated with a pull request when it is closed or merged. | |
name: Cancel | |
on: | |
pull_request_target: | |
types: | |
- closed | |
permissions: | |
contents: read | |
jobs: | |
cancel: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
permissions: | |
actions: write # to cancel workflow runs | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
sparse-checkout: | | |
.github | |
- uses: actions/github-script@v7 | |
with: | |
script: | | |
const script = require( | |
`${process.env.GITHUB_WORKSPACE}/.github/workflows/cancel.js` | |
); | |
await script({ context, github }); |