Skip to content

Commit

Permalink
fix: adds linter reccomendations
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 3f63bed commit 64613ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,23 @@ jobs:

- name: Check if triggered by release or workflow dispatch
id: check_event
run: echo ::set-output name=event_type::${{ toJson(github.event_name) }}
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 }}

- name: Build image with Buildah
id: build-image
id: build_image
uses: redhat-actions/buildah-build@v2
with:
image: ${{ env.IMAGE_NAME }}
Expand Down

0 comments on commit 64613ed

Please sign in to comment.