Skip to content

Commit

Permalink
Replace deprecated set-output command
Browse files Browse the repository at this point in the history
  • Loading branch information
palvarez89 committed Nov 28, 2023
1 parent 77b2408 commit 465af4f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/test-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,16 @@ jobs:
- name: Set vars
id: set_vars
run: |
echo "::set-output name=deployment_branch::"
echo "deployment_branch=" >> $GITHUB_OUTPUT
if [[ "${{github.ref}}" == "refs/heads/master" ]]; then
# if this is a push to master, deploy to dev
if [[ "${{github.event_name}}" == "push" ]]; then
echo "::set-output name=deployment_branch::master"
echo "deployment_branch=master" >> $GITHUB_OUTPUT
# If triggered manually, deply to prod
elif [[ "${{github.event_name}}" == "workflow_dispatch" ]]; then
echo "::set-output name=deployment_branch::prod"
echo "deployment_branch=prod" >> $GITHUB_OUTPUT
fi
fi
test_swagger_editor_validator_remote:
Expand Down

0 comments on commit 465af4f

Please sign in to comment.