Skip to content

Bump actions/checkout from 4.1.7 to 4.2.0 #898

Bump actions/checkout from 4.1.7 to 4.2.0

Bump actions/checkout from 4.1.7 to 4.2.0 #898

Workflow file for this run

on:
pull_request:
branches:
- main
types:
- opened
- closed
permissions:
contents: read
jobs:
update_task_on_pr_open:
if: ${{ github.event.pull_request.state == 'open' }}
runs-on: ubuntu-latest
steps:
- uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit
- uses: panther-labs/github-asana-action@967374b16dafdcab025b073b2907aa4eaad11545
name: Adds a comment to the related Asana task whenever a PR has been opened
with:
asana-pat: ${{ secrets.ASANA_PAT }}
action: "add-comment"
text: ${{ format('A Pull Request has been opened {0}', github.event.pull_request.html_url) }}
is-pinned: true
- uses: panther-labs/github-asana-action@967374b16dafdcab025b073b2907aa4eaad11545
name: Moves the Asana task to "In Review" when the PR is opened
with:
asana-pat: ${{ secrets.ASANA_PAT }}
action: "move-section"
targets: '[{"projectNameRegex": "(S|s)print", "section": "In Review"}]'
update_task_on_pr_close:
if: ${{ github.event.pull_request.state == 'closed' }}
runs-on: ubuntu-latest
steps:
- uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit
- uses: panther-labs/github-asana-action@967374b16dafdcab025b073b2907aa4eaad11545
name: Adds a comment to the related Asana task when the PR is closed
with:
asana-pat: ${{ secrets.ASANA_PAT }}
action: "add-comment"
text: ${{ format('A Pull Request is now closed {0}', github.event.pull_request.html_url) }}
- uses: panther-labs/github-asana-action@967374b16dafdcab025b073b2907aa4eaad11545
name: Closes the related Asana tasks when the PR gets merged
if: github.event.pull_request.merged
with:
asana-pat: ${{ secrets.ASANA_PAT }}
action: "complete-task"
trigger-phrase-regex: "(C|c)loses"
is-complete: true