This commit is contained in:
Michał Zieliński
2025-09-18 08:41:42 +02:00
parent ec8c8aef35
commit 21cb4c44e8

View File

@@ -34,6 +34,7 @@ jobs:
run: | run: |
node .gitea/scripts/getLatestRunWithArtifacts.js node .gitea/scripts/getLatestRunWithArtifacts.js
echo "Resolved run_id: $(cat .gitea/.cache/run_id)" echo "Resolved run_id: $(cat .gitea/.cache/run_id)"
echo "run_id=$(cat .gitea/.cache/run_id)" >> "$GITHUB_OUTPUT"
- name: Download frontend artifact - name: Download frontend artifact
env: env:
@@ -62,13 +63,14 @@ jobs:
ls -laR artifacts/webapi || true ls -laR artifacts/webapi || true
echo "::endgroup::" echo "::endgroup::"
- name: Resolve latest run that exposes required artifacts - name: Tokenize (replace #{...}# from secrets/vars)
id: resolve
env: env:
GITEA_PAT: ${{ secrets.GITEATOKEN }} SECRETS: ${{ toJson(secrets) }}
run: | VARIABLES: ${{ toJson(vars) }}
node .gitea/scripts/getLatestRunWithArtifacts.js RUN_ID: ${{ steps.resolve.outputs.run_id }}
echo "run_id=$(cat .gitea/.cache/run_id)" >> "$GITHUB_OUTPUT" run: |
set -euo pipefail
node .gitea/scripts/replaceTokens.js
- name: Package artifacts as ZIPs - name: Package artifacts as ZIPs
run: | run: |