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

Replace set-output #130

Merged
merged 1 commit into from
Oct 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.saobby.my.eu.orgmunity/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