Use the runner output file for deployment workflows
This commit is contained in:
parent
c0e18d6561
commit
8e8e7ba8d6
3 changed files with 7 additions and 4 deletions
|
|
@ -44,7 +44,7 @@ jobs:
|
|||
commit="$(git rev-parse HEAD)"
|
||||
printf '%s' "$commit" | grep -Eq '^[0-9a-f]{40}$'
|
||||
git merge-base --is-ancestor "$commit" origin/main
|
||||
printf 'sha=%s\n' "$commit" >> "$GITEA_OUTPUT"
|
||||
printf 'sha=%s\n' "$commit" >> "$GITHUB_OUTPUT"
|
||||
node --version
|
||||
npm --version
|
||||
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ jobs:
|
|||
run: |
|
||||
commit="$(git rev-parse HEAD)"
|
||||
test "$commit" = "$PUSHED_COMMIT"
|
||||
printf 'sha=%s\n' "$commit" >> "$GITEA_OUTPUT"
|
||||
printf 'sha=%s\n' "$commit" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Install dependencies from the lockfile
|
||||
run: npm ci
|
||||
|
|
@ -69,7 +69,7 @@ jobs:
|
|||
else
|
||||
printf 'Skipping stale commit %s; main is now %s.\n' "$DEPLOY_COMMIT" "$current_commit"
|
||||
fi
|
||||
printf 'deploy=%s\n' "$deploy" >> "$GITEA_OUTPUT"
|
||||
printf 'deploy=%s\n' "$deploy" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Install the deployment clients
|
||||
if: steps.freshness.outputs.deploy == 'true'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue