This commit is contained in:
parent
ee23983551
commit
7f01a92677
1 changed files with 9 additions and 10 deletions
|
@ -24,6 +24,15 @@ jobs:
|
|||
version=$(grep -oPm1 "(?<=<FileVersion>)[^<]+" PS2_Manager/PS2_Manager.csproj)
|
||||
echo "PS2Manager version: $version"
|
||||
echo "version=$version" >> $GITHUB_OUTPUT
|
||||
|
||||
|
||||
- name: Check if release tag already exists
|
||||
run: |
|
||||
tag="v${{ steps.get_version.outputs.version }}"
|
||||
if git ls-remote --tags origin | grep -q "refs/tags/$tag"; then
|
||||
echo "Release tag $tag already exists. Cancelling workflow."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Build the project (Linux x64)
|
||||
run: |
|
||||
|
@ -74,16 +83,6 @@ jobs:
|
|||
rm -rf ./output_linux ./output_win
|
||||
|
||||
|
||||
|
||||
- name: Generate tag name based on current date and time
|
||||
id: generate_tag
|
||||
run: |
|
||||
# Get current date and time, format as 'YYYY-MM-DD-HHMMSS'
|
||||
current_date=$(date +"%Y-%m-%d-%H%M%S")
|
||||
echo "Generated tag name: $current_date"
|
||||
echo "::set-output name=tag_name::$current_date"
|
||||
|
||||
|
||||
- name: Create Git tag
|
||||
run: |
|
||||
git config user.name "WeeXnes"
|
||||
|
|
Loading…
Add table
Reference in a new issue