Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename workflow #32

Merged
merged 4 commits into from
Sep 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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