Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to pass an Asana task ID through the branch name #7

Open
DmitrySalnikov opened this issue Apr 8, 2022 · 0 comments
Open

How to pass an Asana task ID through the branch name #7

DmitrySalnikov opened this issue Apr 8, 2022 · 0 comments

Comments

@DmitrySalnikov
Copy link

DmitrySalnikov commented Apr 8, 2022

I tried to take the task ID from the PR branch name, for that I parsed the name and updated the PR body in step 1, so step 2 should find a link to the task in the body. But it seems that it get the data as it was when the workflow was triggered.

Is there a possibility to reload the data and pass it to the second step, or any other solutions?

on:
  pull_request:
    types: [opened]

jobs:
  create-asana-attachment-job:
    runs-on: ubuntu-latest
    name: Create pull request attachments on Asana tasks
    steps:
      - name: Create comment with the link to Asana taks
        uses: tzkhan/pr-update-action@v2
        with:
          repo-token: ${{ secrets.GITHUB_TOKEN }}
          head-branch-regex: '\d{16}'
          body-template: https://app.asana.com/0/1201376205424374/%headbranch%
      - name: Create pull request attachments
        uses: Asana/create-app-attachment-github-action@latest
        id: postAttachment
        with:
          asana-secret: ${{ secrets.ASANA_SECRET }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant