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

Commit

Permalink
no-op to test if new PR check will skip... (#164)
Browse files Browse the repository at this point in the history
* no-op to test if new PR check will skip building container images for a readme update

Signed-off-by: Nick Boldt <nboldt@redhat.com>

must checkout before we can git diff, obviously

Signed-off-by: Nick Boldt <nboldt@redhat.com>

must checkout before we can git diff, obviously

Signed-off-by: Nick Boldt <nboldt@redhat.com>

* Update README.md

---------

Signed-off-by: Nick Boldt <nboldt@redhat.com>
  • Loading branch information
nickboldt authored Jan 29, 2024
1 parent 46e6c31 commit 4845ed6
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/next-container-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,21 @@ jobs:
# check if the change for this PR necessitates a rebuild of containers
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: check-changes
# check changes in this commit for regex include and exclude matches; pipe to an env var
run: |
CHANGES="$(git diff --name-only | \
grep -E "/docker/|\.dockerignore|workflows/.+-container-build.yaml|Makefile|/bundle/|/config/|go.mod|go.sum|.+\.go" | \
grep -v -E ".+_test.go|/.rhdh/")" \
>> $GITHUB_ENV
grep -E "docker/|\.dockerignore|workflows/.+-container-build.yaml|Makefile|bundle/|config/|go.mod|go.sum|.+\.go" | \
grep -v -E ".+_test.go|/.rhdh/")";
echo "Changed files for this commit:"
echo "=============================="
echo "$CHANGES"
echo "=============================="
echo "CHANGES=$CHANGES" >> $GITHUB_ENV
next-build:
name: Next build
Expand Down
16 changes: 13 additions & 3 deletions .github/workflows/pr-container-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,23 @@ jobs:
runs-on: ubuntu-latest
needs: authorize
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: check-changes
# check changes in this commit for regex include and exclude matches; pipe to an env var
run: |
CHANGES="$(git diff --name-only | \
grep -E "/docker/|\.dockerignore|workflows/.+-container-build.yaml|Makefile|/bundle/|/config/|go.mod|go.sum|.+\.go" | \
grep -v -E ".+_test.go|/.rhdh/")" \
>> $GITHUB_ENV
grep -E "docker/|\.dockerignore|workflows/.+-container-build.yaml|Makefile|bundle/|config/|go.mod|go.sum|.+\.go" | \
grep -v -E ".+_test.go|/.rhdh/")";
echo "Changed files for this commit:"
echo "=============================="
echo "$CHANGES"
echo "=============================="
echo "CHANGES=$CHANGES" >> $GITHUB_ENV
pr-build:
name: PR Publish
Expand Down

0 comments on commit 4845ed6

Please sign in to comment.