Skip to content

Commit

Permalink
fix[build]: fix the diff workflow missing version information
Browse files Browse the repository at this point in the history
  • Loading branch information
dhkatz committed Jun 18, 2024
1 parent 121c2e2 commit 3a154e7
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3a154e7

Please sign in to comment.