Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

Commit

Permalink
fix(workflow): use suggested output setter
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjokumsen committed Dec 2, 2022
1 parent de709e4 commit c407fca
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/test-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,16 @@ jobs:
shell: pwsh
run: |
$json = Get-Content ./NR | ConvertFrom-Json
echo "::set-output name=pr::$(echo $json.pr)"
echo "::set-output name=ref::$(echo $json.ref)"
echo $json.pr
echo $json.ref
echo "pr=$json.pr" >> $GITHUB_OUTPUT
echo "ref=$json.ref" >> $GITHUB_OUTPUT
- uses: actions/checkout@v3
name: Checkout this repo to access action
with:
path: './action-repo'
ref: steps.set_pr.outputs.ref
ref: ${{ steps.set_pr.outputs.ref }}

- uses: actions/checkout@v3
name: Checkout chill-viking/github-actions-tests
Expand All @@ -77,6 +79,6 @@ jobs:
await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: ${{ steps.set-pr.outputs.result }},
issue_number: ${{ steps.set-pr.outputs.pr }},
body: 'Testing action for ${{ matrix.os }} was successful!'
});

0 comments on commit c407fca

Please sign in to comment.