Skip to content

Commit

Permalink
feat(resource): Added check for changie file
Browse files Browse the repository at this point in the history
  • Loading branch information
demeyerthom committed Feb 2, 2024
1 parent 0d50642 commit 6db3389
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/actions/has-change-file/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Has Change File
description: Check if a new change file is set

inputs:
registry:
required: false
default: ""
description: "Regional or multi-regional location of the repository where the image is stored"

runs:
using: "composite"
steps:
- uses: dorny/paths-filter@v3
id: changes
with:
filters: |
changes:
- '.changes/unreleased/**'
- name: Check changes
if: steps.changes.outputs.src == 'true'
shell: bash
run: |
echo "No new change file set in .changes/unreleased"
exit 1
3 changes: 3 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Has changes file
uses: ./.github/actions/has-change-file

- uses: hashicorp/setup-terraform@v2
with:
terraform_version: 1.3.7
Expand Down

0 comments on commit 6db3389

Please sign in to comment.