-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: make inclusion of snap name in tag optional
- Loading branch information
Showing
2 changed files
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,10 @@ inputs: | |
launchpad-token: | ||
description: "A token with permissions to create remote builds on Launchpad" | ||
required: true | ||
multi-snap: | ||
description: "Whether the repo contains the source for multiple snaps" | ||
required: false | ||
default: "false" | ||
repo-token: | ||
required: true | ||
description: A token with privileges to create and push tags to the repository. | ||
|
@@ -136,7 +140,12 @@ runs: | |
git config --global user.email '[email protected]' | ||
revision="${{ steps.publish.outputs.revision }}" | ||
tag_name="${name}-${version}/rev${revision}/${{ inputs.architecture }}" | ||
if [[ "${{ inputs.multi-snap }}" == "true" ]]; then | ||
tag_name="${name}-${version}/rev${revision}/${{ inputs.architecture }}" | ||
else | ||
tag_name="${version}/rev${revision}/${{ inputs.architecture }}" | ||
fi | ||
git tag -a "$tag_name" -m "Revision ${revision}, released for ${{ inputs.architecture }}" | ||
git push origin "$tag_name" |