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

chore: multiline env var; explicitly check... #167

Merged
merged 1 commit into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/next-container-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,18 @@ jobs:
- 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 | \
CHANGES="$(git diff --name-only HEAD~1 | \
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
{
echo 'CHANGES<<EOF'
echo $CHANGES
echo EOF
} >> "$GITHUB_ENV"

next-build:
name: Next build
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/pr-container-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,18 @@ jobs:
- 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 | \
CHANGES="$(git diff --name-only HEAD~1 | \
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
{
echo 'CHANGES<<EOF'
echo $CHANGES
echo EOF
} >> "$GITHUB_ENV"

pr-build:
name: PR Publish
Expand Down
Loading