Skip to content

Commit

Permalink
Merge pull request #91 from IABTechLab/llp-UID2-3114-pass-commit-tag-…
Browse files Browse the repository at this point in the history
…to-setup

Update conditional.
  • Loading branch information
lionell-pack-ttd authored Apr 5, 2024
2 parents 0a31a9f + 314e131 commit 107c74e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion actions/commit_pr_and_merge/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ inputs:
outputs:
git_tag_or_hash:
description: The git tag (or hash if no tag provided) of the merge commit
value: ${{ inputs.tag != '' && inputs.tag || steps.get-commit-hash.outputs.commit_sha }}
value: ${{ steps.tag-commit.result == 'success' && steps.tag-commit.outputs.commit_tag || steps.get-commit-hash.outputs.commit_sha }}

runs:
using: "composite"
Expand Down Expand Up @@ -57,6 +57,7 @@ runs:

- name: Tag commit
uses: actions/github-script@v7
id: tag-commit
if: ${{ inputs.tag }}
with:
script: |
Expand All @@ -72,6 +73,7 @@ runs:
ref: 'refs/tags/${{ inputs.tag }}',
sha: pr.merge_commit_sha
});
core.setOutput('commit_tag', '${{ inputs.tag }}');
- name: Get commit hash
uses: actions/github-script@v7
Expand Down

0 comments on commit 107c74e

Please sign in to comment.