Skip to content

Commit

Permalink
Update check-for-changes.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sonomirco authored Dec 11, 2023
1 parent 569189e commit 0ef56cf
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/check-for-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,21 @@ jobs:
run: echo "$GITHUB_CONTEXT"

- name: "Get PR's branch name"
id: get_branch
id: ref
run: |
PR=$(curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" ${{ github.event.issue.pull_request.url }})
echo $PR | jq -r '.head.ref'
echo "sha=$(PR | jq -r '.head.sha)" >> $GITHUB_OUTPUT
echo $(PR | jq -r '.head.sha)'
- name: 🛎 Checkout repo
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.url.head.sha }}
ref: ${{ steps.ref.outputs.sha }}

- name: 📌 Filter changed projects
uses: dorny/paths-filter@v2
with:
base: ${{ github.event.pull_request.url.head.sha }}
base: ${{ steps.ref.outputs.sha }}
filters: |
changes:
- './**'
Expand All @@ -39,7 +40,7 @@ jobs:
fail-fast: true
uses: ./.github/workflows/deployment.yaml
with:
deplyment_review: ${{ github.event.pull_request.head.sha }}
deplyment_review: ${{ steps.ref.outputs.sha }}
secrets: inherit

test:
Expand Down

0 comments on commit 0ef56cf

Please sign in to comment.