-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Rename workflow * Move build version to param * Remove env var * Fix --------- Co-authored-by: Samuel Robillard <[email protected]>
- Loading branch information
1 parent
41be906
commit 738f481
Showing
1 changed file
with
8 additions
and
3 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,12 @@ on: | |
push: | ||
branches: | ||
- main | ||
workflow_call: | ||
inputs: | ||
buildVersion: | ||
description: 'Build version to use for the tag' | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
create_tag: | ||
|
@@ -13,16 +19,15 @@ jobs: | |
GIT_USER_NAME: "Infra Workleap" | ||
GIT_USER_EMAIL: "[email protected]" | ||
SOURCE_VERSION_MESSAGE: "Automated tag creation" | ||
BUILD_NUMBER: "1.0.0" | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Create Git Tag | ||
run: | | ||
echo "Creating tag [${{ env.BUILD_NUMBER }}] with message: ${{ env.SOURCE_VERSION_MESSAGE }}" | ||
echo "Creating tag [${buildVersion}] with message: ${{ env.SOURCE_VERSION_MESSAGE }}" | ||
git config --global user.name "${{ env.GIT_USER_NAME }}" | ||
git config --global user.email "${{ env.GIT_USER_EMAIL }}" | ||
git tag -a ${{ env.BUILD_NUMBER }} -m "${{ env.SOURCE_VERSION_MESSAGE }}" | ||
git tag -a ${buildVersion} -m "${{ env.SOURCE_VERSION_MESSAGE }}" | ||
git push origin --tags |