fix: test #4
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
on: [push] | |
jobs: | |
main: | |
name: Build, Format and Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: linz/action-typescript@dee99184c4305aea6c380a52db9b2d7abaaa3e78 # pin@v3 | |
- name: Download actionlint | |
run: docker build --tag actionlint - < .github/workflows/actionlint.dockerfile | |
- name: Run actionlint to check workflow files | |
run: docker run --volume="${PWD}:/repo" --workdir=/repo actionlint -color | |
deploy-prod: | |
runs-on: ubuntu-latest | |
concurrency: deploy-prod-${{ github.ref }} | |
needs: [main] | |
environment: | |
name: nonprod | |
permissions: | |
id-token: write | |
contents: read | |
env: | |
CLUSTER_NAME: Workflows | |
steps: | |
- name: get-changes | |
id: get-changes | |
run: | |
mapfile -d '' modified_infra_files < <(git diff --name-only -z ${{ github.event.before }} ${{ github.event.after }} -- "infra/*") | |
if [[ "${#modified_infra_files[@]}" -ge 1 ]]; then | |
echo "infra_change=true" >> $GITHUB_OUTPUT | |
else | |
echo "infra_change=false" >> $GITHUB_OUTPUT | |
fi | |
- name: Echo test needs | |
if: steps.get-changes.outputs.infra_change == 'true' | |
run: | | |
echo test-needs-true | |
- name: Echo test needs | |
if: steps.get-changes.outputs.infra_change == 'false' | |
run: | | |
echo test-needs-false | |
- name: Echo test | |
run: | | |
echo test-only |