GitHub: Development. #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: | |
- liljx | |
jobs: | |
get-releases: | |
name: Get releases | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Get releases | |
id: get-releases | |
run: | | |
# Get releases. | |
releases="$(dirname azure/v*/release.yaml capa/v*/release.yaml)" | |
echo "${releases}" | |
# Convert releases into JSON. | |
releases="$(echo "${releases}" | jq --raw-input --slurp 'split("\n")[:-1]' --compact-output)" | |
echo "${releases}" | |
# Store releases. | |
echo releases="${releases}" >> "${GITHUB_OUTPUT}" | |
cat "${GITHUB_OUTPUT}" | |
- name: Print releases | |
run: echo "${{ steps.get-releases.outputs.releases }}" | |
outputs: | |
releases: ${{ steps.get-releases.outputs.releases }} | |
print-release: | |
name: Print release | |
runs-on: ubuntu-latest | |
needs: get-releases | |
strategy: | |
matrix: | |
release: ${{ fromJSON(needs.get-releases.outputs.releases) }} | |
steps: | |
- name: Print release | |
env: | |
release: ${{ matrix.release }} | |
run: echo "${release}" |