Skip to content

Commit

Permalink
fix: adds quotes around GITHUB_ENV and GITHUB_OUTPUT
Browse files Browse the repository at this point in the history
Signed-off-by: Jennifer Power <barnabei.jennifer@gmail.com>
  • Loading branch information
jpower432 committed Aug 1, 2023
1 parent 64613ed commit d6eec34
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,18 @@ jobs:

- name: Check if triggered by release or workflow dispatch
id: check_event
run: echo "event_type=${{ toJson(github.event_name) }}" >> $GITHUB_OUTPUT
run: echo "event_type=${{ toJson(github.event_name) }}" >> "$GITHUB_OUTPUT"

# Using intermediary variable to process event based input
- name: Set TAG environment variable for Release
if: steps.check_event.outputs.event_type == 'release'
run: echo "TAG=$RELEASE_VERSION" >> $GITHUB_ENV
run: echo "TAG=$RELEASE_VERSION" >> "$GITHUB_ENV"
env:
RELEASE_VERSION: ${{ github.event.release.tag_name }}

- name: Set TAG environment variable for Workflow Dispatch
if: steps.check_event.outputs.event_type == 'workflow_dispatch'
run: echo "TAG=$INPUT_VERSION" >> $GITHUB_ENV
run: echo "TAG=$INPUT_VERSION" >> "$GITHUB_ENV"
env:
INPUT_VERSION: ${{ github.event.inputs.tag }}

Expand Down

0 comments on commit d6eec34

Please sign in to comment.