-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix[build]: fix the diff workflow missing version information
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 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 |
---|---|---|
|
@@ -13,16 +13,44 @@ jobs: | |
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Get Version | ||
id: version | ||
uses: ietf-tools/semver-action@v1 | ||
if: github.ref_type != 'tag' | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: master | ||
noVersionBumpBehavior: current | ||
|
||
- name: Get Semver Version | ||
id: semver_version | ||
uses: dhkatz/[email protected] | ||
|
||
- name: Setup T5DE Version | ||
if: github.ref_type != 'tag' | ||
run: | | ||
echo "T5DE_VERSION=${{ steps.version.outputs.nextStrict }}${{ format('+{0}-{1}', github.ref_name, github.run_id) }}" >> $env:GITHUB_ENV | ||
- name: Setup T5DE Version | ||
if: github.ref_type == 'tag' | ||
run: | | ||
echo "T5DE_VERSION=${{ steps.semver_version.outputs.version-without-v }}" >> $env:GITHUB_ENV | ||
- name: Setup Python 2.7 | ||
uses: LizardByte/setup-python-action@master | ||
with: | ||
python-version: '2.7' | ||
- run: pip install -r requirements.txt | ||
|
||
- name: Setup IMVU Version | ||
run: | | ||
$ENV:IMVU_VERSION = $(cat VERSION) | ||
echo ("IMVU_VERSION=" + $ENV:IMVU_VERSION) >> $ENV:GITHUB_ENV | ||
- name: Echo Versions | ||
run: | | ||
echo "T5DE_VERSION=${{ env.T5DE_VERSION }}" | ||
echo "IMVU_VERSION=${{ env.IMVU_VERSION }}" | ||
- run: python -m t5de --diff |