Skip to content

Commit 4aa088b

Browse files
committed
ci(workflows): [add-to-project] add project url step
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
1 parent 23291ab commit 4aa088b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/add-to-project.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,13 @@ jobs:
3737
with:
3838
app-id: ${{ secrets.BOT_APP_ID }}
3939
private-key: ${{ secrets.BOT_PRIVATE_KEY }}
40+
- id: url
41+
name: Get project url
42+
run: |
43+
echo "result=$(echo "${{ github.server_url }}/orgs/${{ github.repository_owner }}/projects/${{ vars.GH_PROJECT_NUMBER }}" | xargs)" >>$GITHUB_OUTPUT
4044
- id: add-item
4145
name: Add ${{ format('#{0}', github.event.number) }} to project
4246
uses: actions/add-to-project@v1.0.2
4347
with:
4448
github-token: ${{ steps.bot-token.outputs.token }}
45-
project-url: |
46-
${{ format('{0}/orgs/{1}/projects/{2}', github.server_url, github.repository_owner, vars.GH_PROJECT_NUMBER) }}
49+
project-url: ${{ steps.url.outputs.result }}

0 commit comments

Comments
 (0)