diff --git a/.github/workflows/pr-open.yml b/.github/workflows/pr-open.yml index 6647ee70..e8895e77 100644 --- a/.github/workflows/pr-open.yml +++ b/.github/workflows/pr-open.yml @@ -15,15 +15,13 @@ jobs: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 - with: - fetch-depth: 0 - name: Get Dockerfiles id: dockerfiles run: | + # git fetch origin ${{ inputs.diff_branch }} git diff --name-only origin/main # Get all Dockerfiles that have changed - # git fetch origin ${{ inputs.diff_branch }} # 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)