Skip to content

Commit

Permalink
Merge pull request #130 from peter-evans/set-output
Browse files Browse the repository at this point in the history
Replace set-output
  • Loading branch information
Peter Evans authored and GitHub committed Oct 18, 2022
2 parents 2b2c85d + aef100f commit 7305482
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ jobs:
- id: vars
run: |
if [[ "${{ github.event_name }}" == "pull_request" ]]; then \
echo "::set-output name=issue-number::${{ github.event.number }}"; \
echo "issue-number=${{ github.event.number }}" >> $GITHUB_OUTPUT; \
else \
echo "::set-output name=issue-number::1"; \
echo "issue-number=1" >> $GITHUB_OUTPUT; \
fi
test:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
run: |
repository=${{ github.event.client_payload.slash_command.repository }}
if [[ -z "$repository" ]]; then repository=${{ github.repository }}; fi
echo ::set-output name=repository::$repository
echo "repository=$repository" >> $GITHUB_OUTPUT
branch=${{ github.event.client_payload.slash_command.branch }}
if [[ -z "$branch" ]]; then branch="main"; fi
echo ::set-output name=branch::$branch
echo "branch=$branch" >> $GITHUB_OUTPUT
# Checkout the branch to test
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ The content must be [escaped to preserve newlines](https://github.community/t/se
body="${body//'%'/'%25'}"
body="${body//$'\n'/'%0A'}"
body="${body//$'\r'/'%0D'}"
echo "::set-output name=body::$body"
echo "body=$body" >> $GITHUB_OUTPUT
- name: Create comment
uses: peter-evans/create-or-update-comment@v2
Expand Down

0 comments on commit 7305482

Please sign in to comment.