Skip to content

Commit

Permalink
Replace 'workflow_call' usage
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoy committed Feb 23, 2024
1 parent c8dfa01 commit 621d999
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/publish_dmg_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:

name: Tag public release

if: github.event_name == 'workflow_dispatch' && github.event.inputs.release-type != 'internal'
if: github.event.inputs.release-type != 'internal'

uses: ./.github/workflows/tag_release.yml
with:
Expand Down Expand Up @@ -76,15 +76,16 @@ jobs:
steps:

- name: Download tag artifact
if: github.event_name == 'workflow_call'
id: download-tag
continue-on-error: true
uses: actions/download-artifact@v4
with:
name: tag
path: .github

- name: Set tag variable
run: |
if [[ "${{ github.event_name }}" == 'workflow_call' ]]; then
if [[ "${{ steps.download-tag.outcome }}" == 'success' ]]; then
echo "tag=$(<.github/tag)" >> $GITHUB_ENV
else
echo "tag=${{ github.event.inputs.tag }}" >> $GITHUB_ENV
Expand Down

0 comments on commit 621d999

Please sign in to comment.