Skip to content

Commit

Permalink
ci(add-to-project): Add project URL for local triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
aborgna-q committed Jul 26, 2024
1 parent c2e6819 commit e898e96
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/add-to-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
env:
# We use this workflow locally for hugrverse-actions issues.
# This variable detects whether we are running the workflow locally or via an external workflow_call.
#
# Github's terrible version of a 'ternary operator'
# https://github.com/actions/runner/issues/409#issuecomment-752775072
PROJECT_URL: ${{ github.repository == env.REPOSITORY && 'https://github.com/orgs/CQCL-DEV/projects/10' || github.event.inputs.project-url }}
with:
project-url: ${{ github.event.inputs.project-url }}
project-url: ${{ env.PROJECT_URL }}
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}

0 comments on commit e898e96

Please sign in to comment.