From 93a7f7a09ee7a3d36a29469d18a954ead23efad2 Mon Sep 17 00:00:00 2001 From: praydog Date: Tue, 24 Sep 2024 13:17:59 -0700 Subject: [PATCH] CI: Maybe it will work this time --- .github/workflows/dev-release.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dev-release.yml b/.github/workflows/dev-release.yml index 3bf9d810..dddda41e 100644 --- a/.github/workflows/dev-release.yml +++ b/.github/workflows/dev-release.yml @@ -56,14 +56,20 @@ jobs: with: path: ${{github.workspace}}/artifacts + - name: Set padded run number + run: | + $paddedRunNumber = "{0:D4}" -f ${{ github.run_number }} + echo "RUN_NUMBER=$paddedRunNumber" >> $env:GITHUB_ENV + shell: powershell + - name: Create Release uses: ncipollo/release-action@6c75be85e571768fa31b40abf38de58ba0397db5 with: repo: REFramework-nightly owner: praydog token: ${{ secrets.REPO_TOKEN }} - name: ${{format('REF Nightly {0:D4} ({1})', github.run_number, github.sha)}} - tag: ${{format('nightly-{0:D4}-{1}', github.run_number, github.sha)}} + name: ${{format('REF Nightly {0} ({1})', env.RUN_NUMBER, github.sha)}} + tag: ${{format('nightly-{0}-{1}', env.RUN_NUMBER, github.sha)}} artifacts: ${{github.workspace}}/artifacts/**/*.zip makeLatest: true bodyFile: ${{github.workspace}}/nightly-body.md