Skip to content

Commit

Permalink
docs: replace set-output in example
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-evans committed Oct 18, 2022
1 parent b4d5173 commit b38e8b0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,10 @@ jobs:
- name: Get Latest Swagger UI Release
id: swagger-ui
run: |
echo ::set-output name=release_tag::$(curl -sL https://api.github.com/repos/swagger-api/swagger-ui/releases/latest | jq -r ".tag_name")
echo ::set-output name=current_tag::$(<swagger-ui.version)
release_tag=$(curl -sL https://api.github.com/repos/swagger-api/swagger-ui/releases/latest | jq -r ".tag_name")
echo "release_tag=$release_tag" >> $GITHUB_OUTPUT
current_tag=$(<swagger-ui.version)
echo "current_tag=$current_tag" >> $GITHUB_OUTPUT
- name: Update Swagger UI
if: steps.swagger-ui.outputs.current_tag != steps.swagger-ui.outputs.release_tag
env:
Expand Down

0 comments on commit b38e8b0

Please sign in to comment.