We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f617d52 commit b585c72Copy full SHA for b585c72
.github/workflows/test_action.yml
@@ -32,8 +32,15 @@ jobs:
32
github_token: ${{ secrets.GITHUB_TOKEN }}
33
commit: false
34
push: false
35
+ - uses: actions/checkout@v2
36
+ with:
37
+ ref: ${{github.event.pull_request.head.ref}}
38
+ repository: ${{github.event.pull_request.head.repo.full_name}}
39
+ fetch-depth: 0 # ensures that tags are fetched, seems to be needed
40
+ path: new_head
41
- name: Test push
42
run: |
43
+ cd new_head
44
last_pushed_commit=$(git rev-parse ${{ github.head_ref }})
45
echo "Commit sha on origin : $last_pushed_commit"
46
if [[ $last_pushed_commit != ${{steps.capture.outputs.commit}} ]]; then
0 commit comments