pub-release: artifact path without the stray quote, bases_repo input for testing the delta path in a dry run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
51e733e500
commit
fe44e9a6cd
1 file changed
+8
-1
@@ -52,6 +52,10 @@ name: pub-release
|
|||||||
description: "build and package only, no release (runs in the private repo too)"
|
description: "build and package only, no release (runs in the private repo too)"
|
||||||
required: false
|
required: false
|
||||||
default: "false"
|
default: "false"
|
||||||
|
bases_repo:
|
||||||
|
description: "dry run only: take delta bases from this repo's releases instead (testing the delta path)"
|
||||||
|
required: false
|
||||||
|
default: ""
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: pub-release
|
group: pub-release
|
||||||
@@ -149,6 +153,8 @@ jobs:
|
|||||||
TAG: ${{ steps.src.outputs.tag }}
|
TAG: ${{ steps.src.outputs.tag }}
|
||||||
OTA_SIGNING_KEY: ${{ secrets.OTA_SIGNING_KEY }}
|
OTA_SIGNING_KEY: ${{ secrets.OTA_SIGNING_KEY }}
|
||||||
TOKEN: ${{ secrets.GITEA_TOKEN || github.token }}
|
TOKEN: ${{ secrets.GITEA_TOKEN || github.token }}
|
||||||
|
DRY: ${{ github.event.inputs.dry_run }}
|
||||||
|
BASES_REPO: ${{ github.event.inputs.bases_repo }}
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
source .github/fw-flags.sh
|
source .github/fw-flags.sh
|
||||||
@@ -163,6 +169,7 @@ jobs:
|
|||||||
pip install -q detools==0.53.0 cryptography
|
pip install -q detools==0.53.0 cryptography
|
||||||
echo '{}' >"$dist/manifest.json"
|
echo '{}' >"$dist/manifest.json"
|
||||||
# earlier public releases (newest first): delta bases for the -ota images
|
# earlier public releases (newest first): delta bases for the -ota images
|
||||||
|
[ "$DRY" = "true" ] && [ -n "$BASES_REPO" ] && PUB_REPO=$BASES_REPO
|
||||||
api="$GITEA/api/v1/repos/$PUB_REPO"
|
api="$GITEA/api/v1/repos/$PUB_REPO"
|
||||||
auth="header = \"Authorization: token $TOKEN\""
|
auth="header = \"Authorization: token $TOKEN\""
|
||||||
bases="$RUNNER_TEMP/bases"
|
bases="$RUNNER_TEMP/bases"
|
||||||
@@ -243,7 +250,7 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: pub-release-dry-run
|
name: pub-release-dry-run
|
||||||
path: dist/"
|
path: dist/
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
if: github.event.inputs.dry_run != 'true'
|
if: github.event.inputs.dry_run != 'true'
|
||||||
|
|||||||
Reference in new issue
Block a user