TFE FDO on Nomad GA release (#169) #19
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: Notify Integration Release | |
on: | |
push: | |
paths: | |
- "packs/**" | |
branches: | |
- main | |
jobs: | |
determine_identifiers: | |
name: Determine Identifiers | |
runs-on: ubuntu-latest | |
outputs: | |
identifiers: ${{ steps.output_result.outputs.identifiers }} | |
steps: | |
- name: Checkout Nomad Pack Community Registry | |
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 | |
- id: determine_changed_files | |
name: Determine Changed Files | |
uses: jitterbit/get-changed-files@d06c756e3609dd3dd5d302dde8d1339af3f790f2 # TSCCR: no entry for action: "jitterbit/get-changed-files" | |
- id: output_result | |
run: | | |
matrixArray=$( | |
echo ${{ steps.determine_changed_files.outputs.all }} \ | |
| sed 's/ /\n/g' \ | |
| ./.github/scripts/files-to-identifiers.sh \ | |
| jq --raw-input --slurp 'split("\n") | map(select(. != ""))' \ | |
| jq -c . | |
) | |
echo "identifiers=$matrixArray" >> "$GITHUB_OUTPUT" | |
notify_release: | |
runs-on: ubuntu-latest | |
needs: determine_identifiers | |
strategy: | |
matrix: | |
integration_identifier: ${{fromJson(needs.determine_identifiers.outputs.identifiers)}} | |
steps: | |
- name: Checkout this repo | |
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 | |
- id: calculate_version | |
name: Calculate Version | |
run: | | |
version="$(./.github/scripts/version-from-identifier.sh ${{ matrix.integration_identifier }})" | |
echo "Computed Version: $version" | |
echo "releaseVersion=$version" >> "$GITHUB_OUTPUT" | |
- name: Checkout integration-release-action | |
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 | |
with: | |
repository: hashicorp/integration-release-action | |
path: ./integration-release-action | |
- name: Notify Release | |
uses: ./integration-release-action | |
with: | |
integration_identifier: ${{ matrix.integration_identifier }} | |
release_version: ${{ steps.calculate_version.outputs.releaseVersion }} | |
release_sha: ${{ github.ref }} | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
integration_strategy: 'nomad-pack' |