Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KonstantAnxiety committed Dec 26, 2023
1 parent 8854481 commit abb5a78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ jobs:
- run: git config --global --add safe.directory /__w/${{ github.event.repository.name }}/${{ github.event.repository.name }}
- run: git fetch origin main
- name: Extract base commit
run: if [ "$GITHUB_EVENT_NAME" = "workflow_dispatch" ]; then result="main"; else result="${{ github.event.pull_request.base.sha }}"; fi && echo "result=$result" >> $GITHUB_OUTPUT
run: if [ "$GITHUB_EVENT_NAME" = "workflow_dispatch" ]; then result="git rev-parse main"; else result="${{ github.event.pull_request.base.sha }}"; fi && echo "result=$result" >> $GITHUB_OUTPUT
id: extract_base_commit
- name: Extract head commit
run: if [ "$GITHUB_EVENT_NAME" = "workflow_dispatch" ]; then result=$(git symbolic-ref --short HEAD); else result="${{ github.event.pull_request.head.sha }}"; fi && echo "result=$result" >> $GITHUB_OUTPUT
run: if [ "$GITHUB_EVENT_NAME" = "workflow_dispatch" ]; then result=$(git rev-parse HEAD); else result="${{ github.event.pull_request.head.sha }}"; fi && echo "result=$result" >> $GITHUB_OUTPUT
id: extract_head_commit
- name: Get packages affected by changes in the current commit
id: get_affected
Expand Down

0 comments on commit abb5a78

Please sign in to comment.