Skip to content

Commit

Permalink
Use pull request HEAD commit instead of pr/merge commit
Browse files Browse the repository at this point in the history
By default action uses merge commit (created with github account
data). This may cause authors test to fail when contributor's info
differs from github account (eg contributor prefers cpan email when
contributing to perl)
  • Loading branch information
Branislav Zahradník committed Dec 25, 2021
1 parent 57036fb commit 04ae318
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/testsuite.yml
Expand Up @@ -37,6 +37,7 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 1000
ref: ${{ github.event.pull_request.head.sha }}
- name: git setup
run: |
echo "Pull request authors"
Expand Down Expand Up @@ -91,6 +92,7 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- name: git cfg + fetch tags
run: |
git config diff.renameLimit 999999
Expand Down Expand Up @@ -156,6 +158,8 @@ jobs:
sudo apt-get update
sudo apt-get install -y libgdbm-dev libdb-dev
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: git cfg + fetch tags
run: |
git config diff.renameLimit 999999
Expand Down Expand Up @@ -251,6 +255,8 @@ jobs:
sudo apt-get update
sudo apt-get install -y libgdbm-dev libdb-dev
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: git cfg + fetch tags
run: |
git config diff.renameLimit 999999
Expand Down Expand Up @@ -304,6 +310,8 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Configure
run: |
export SDK=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk
Expand Down Expand Up @@ -334,6 +342,8 @@ jobs:
steps:
- run: git config --global core.autocrlf false
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
#- name: Install clcache
# shell: cmd
# run: |
Expand Down Expand Up @@ -390,6 +400,8 @@ jobs:
steps:
- run: git config --global core.autocrlf false
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Perl build environment
run: |
# skip installing perl if it is already installed.
Expand Down Expand Up @@ -513,6 +525,8 @@ jobs:
sudo apt-get update
sudo apt-get install -y libgdbm-dev libdb-dev
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: git cfg + fetch tags
run: |
git config diff.renameLimit 999999
Expand Down Expand Up @@ -565,6 +579,8 @@ jobs:
sudo apt-get update
sudo apt-get install -y libgdbm-dev libdb-dev
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: git cfg + fetch tags
run: |
git config diff.renameLimit 999999
Expand Down Expand Up @@ -614,6 +630,8 @@ jobs:
sudo apt-get update
sudo apt-get install -y libgdbm-dev libdb-dev
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: git cfg + fetch tags
run: |
git config diff.renameLimit 999999
Expand Down

0 comments on commit 04ae318

Please sign in to comment.