Skip to content

fix direct lambda upload #853

fix direct lambda upload

fix direct lambda upload #853

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@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.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@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.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