Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
Fail build if tag is not set (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
tunetheweb authored Nov 9, 2023
1 parent 2e6c31f commit 15d88df
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/deploy-dataflow-flex-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ jobs:
id: build_flex_template
run: echo "BUILD_TAG=$(./build_flex_template.sh | tail -1)" >> $GITHUB_OUTPUT
shell: bash
- name: Check BUILD_TAG
# Fail the run if the BUILD_TAG is empty
if: ${{ steps.build_flex_template.outputs.BUILD_TAG == '' }}
run: exit 1
- name: Update Cloud Workflow build tag
# yamllint disable rule:line-length
run: sed -ri 's/^(\s*-\sflexTemplateBuildTag:)(\s".*"$)/\1 "${{ steps.build_flex_template.outputs.BUILD_TAG }}"/' data-pipeline.workflows.yaml
Expand Down

0 comments on commit 15d88df

Please sign in to comment.