CI: Support large build IDs in artifact builds (#107533)

* CI: Support large build IDs in artifact builds

* Use run_id instead of run_number in prerelease builds
This commit is contained in:
Kevin Minehart
2025-07-02 18:43:59 +00:00
committed by GitHub
parent 11ea1dfba8
commit d57155a19b
3 changed files with 7 additions and 4 deletions
+3 -3
View File
@@ -59,7 +59,7 @@ jobs:
run: jq -r .version package.json | sed -s "s/pre/${BUILD_ID}/g" > VERSION
env:
REF_NAME: ${{ github.ref_name }}
BUILD_ID: ${{ github.run_number }}
BUILD_ID: ${{ github.run_id }}
- id: output
run: |
echo "version=$(cat VERSION)" >> "$GITHUB_OUTPUT"
@@ -90,7 +90,7 @@ jobs:
env:
REF: ${{ github.ref_name }}
VERSION: ${{ needs.setup.outputs.version }}
BUILD_ID: ${{ github.run_number }}
BUILD_ID: ${{ github.run_id }}
BUCKET: grafana-prerelease
GRAFANA_COMMIT: ${{ needs.setup.outputs.grafana-commit }}
with:
@@ -163,7 +163,7 @@ jobs:
version: ${{ needs.setup.outputs.version }}
output: artifacts-${{ matrix.name }}.txt
verify: true
build-id: ${{ github.run_number }}
build-id: ${{ github.run_id }}
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
with:
name: artifacts-list-${{ matrix.name }}