Skip to content

Commit

Permalink
.github/Test
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts committed Nov 15, 2023
1 parent 3fbca18 commit f438f6a
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,11 @@ jobs:
- name: Get Dockerfiles
id: dockerfiles
run: |
git fetch origin ${{ github.event.repository.default_branch }}
git diff --name-only origin/main
# Get all Dockerfiles that have changed
# git diff --name-only ${{ github.head_ref || github.ref_name }} ${{ github.event.repository.default_branch }}
# DOCKERFILES=$(git diff --name-only ${{ github.head_ref || github.ref_name }} ${{ github.event.repository.default_branch }} | grep -E '^[^/]+/[^/]+/Dockerfile$' | sort -u)
# echo "dockerfiles=${DOCKERFILES}" >> $GITHUB_OUTPUT
# echo -e "Dockerfiles: \n $DOCKERFILES"
git fetch origin ${{ github.event.repository.default_branch }}
DOCKERFILES=$(git diff --name-only ${{ github.event.repository.default_branch }} | grep -E '^[^/]+/[^/]+/Dockerfile$' | sort -u)
echo "dockerfiles=${DOCKERFILES}" >> $GITHUB_OUTPUT
echo -e "Dockerfiles: \n $DOCKERFILES"
# # https://github.com/bcgov-nr/action-builder-ghcr
# builds:
Expand Down

0 comments on commit f438f6a

Please sign in to comment.