;workflows: release: fixes

This commit is contained in:
Simon Michael 2024-05-18 22:06:30 -10:00
parent 1faad6fabb
commit 6e7b8f9862

View File

@ -21,8 +21,8 @@ jobs:
# Get artifact from the latest binaries-linux-x64 run
- name: Get latest linux binaries artifact
# XXX unverified, disallowed
uses: dawidd6/action-download-artifact@09f2f74827fd3a8607589e5ad7f9398816f540fe # https://github.com/dawidd6/action-download-artifact v3.1.4
uses: dawidd6/action-download-artifact@09f2f74827fd3a8607589e5ad7f9398816f540fe
# https://github.com/dawidd6/action-download-artifact v3.1.4, unverified so needs to be whitelisted in repo settings
with:
# Optional, GitHub token, a Personal Access Token with `public_repo` scope if needed
# Required, if the artifact is from a different repo
@ -50,9 +50,9 @@ jobs:
# Optional, no need to specify if PR is
# commit: ${{github.event.pull_request.head.sha}}
# Optional, will use the specified branch. Defaults to all branches
branch: binaries-linux-x64
# branch: binaries-linux-x64
# Optional, defaults to all types
event: push
# event: push
# Optional, run number from the workflow
# run_number: 34
# Optional, uploaded artifact name,
@ -66,7 +66,7 @@ jobs:
# Optional, name is treated as a regular expression if set true
# name_is_regexp: true
# Optional, a directory where to extract artifact(s), defaults to the current directory
path: tmp
path: artifacts
# Optional, defaults to current repo
# repo: ${{ github.repository }}
# Optional, check the workflow run to whether it has an artifact
@ -85,14 +85,16 @@ jobs:
# default fail
# if_no_artifact_found: fail
# Optional, allow forks when searching for artifacts
# default false
# allow_forks: false
# default true
allow_forks: false
- name: Inspect
shell: bash
run: |
echo .:
ls -lF
ls -lF tmp
echo artifacts:
ls -lRF artifacts
# - name: Make tarball
# shell: bash
@ -138,6 +140,16 @@ jobs:
# https://github.com/marketplace/actions/safe-download-workflow-artifact
# https://github.com/actions/upload-artifact/issues/89#issuecomment-1194408215
# https://www.eliostruyf.com/retrieving-artifact-previous-github-actions-workflow/
# We have two workflows, one for building and one for releasing built artifacts upon a tag release.
# They're both summoned from one push event, and the release job waits for the other job:
# https://github.com/dawidd6/action-download-artifact/issues/245
# - name: version
# run: echo "::set-output name=version::$(./bin/azblogfilter --version)"