Skip to content

Commit

Permalink
Fix: tag composition with submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
minottic committed Aug 17, 2022
1 parent e85e256 commit 9cfe3df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/reusable.environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ jobs:
elif [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
input_commit=${{ inputs.commit }}
commit=${input_commit:-${{ github.sha }}}
submodule_append=`[ -z ${{ inputs.submodule_commit }} ] || echo "_sha-${{ inputs.workflow_dispatch_submodule_commit }}" && echo ""`
tag="sha-${{ inputs.commit }}$submodule_append"
submodule_append=`[ -z ${{ inputs.submodule_commit }} ] || echo "_sha-${{ inputs.submodule_commit }}" && echo ""`
tag="sha-$commit$submodule_append"
environment=development
elif [[ "${{ github.event_name }}" == "push" && "${{ github.ref }}" == "refs/heads/main" ]]; then
tag="sha-${{ github.sha }}"
Expand Down

0 comments on commit 9cfe3df

Please sign in to comment.