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:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user