Skip to content

Commit 047966c

Browse files
committed
Adjust smoke-information workflow
The smoke-information workflow was failing on Pull Request. 1/ need to pull from origin in order to know 'blead' (which in most cases is going to be GITHUB_BASE_REF) 2/ stop using GITHUB_HEAD_REF and use HEAD instead.
1 parent 5e18b29 commit 047966c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/smoke-information.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ env:
1212
PERL_SKIP_TTY_TEST: 1
1313

1414
jobs:
15-
perl:
15+
authors:
1616

1717
runs-on: ubuntu-latest
1818

@@ -22,10 +22,10 @@ jobs:
2222
fetch-depth: 10
2323
- name: Involved authors
2424
run: |
25-
if [ -n "${GITHUB_HEAD_REF}" ]; then
25+
if [ -n "${GITHUB_BASE_REF}" ]; then
2626
echo "Pull request authors"
27-
# env
28-
echo git merge-base origin/${GITHUB_BASE_REF} ${GITHUB_HEAD_REF}
29-
branch_off=$(git merge-base origin/${GITHUB_BASE_REF} ${GITHUB_HEAD_REF})
30-
git log --pretty=format:"Author: %an <%ae>" $branch_off..${GITHUB_SHA}^2
27+
git fetch origin >/dev/null 2>&1
28+
echo "# git merge-base origin/${GITHUB_BASE_REF} HEAD"
29+
branch_off=$(git merge-base origin/${GITHUB_BASE_REF} HEAD)
30+
git log --pretty=format:"Author: %an <%ae>" $branch_off..${GITHUB_SHA::8}^2 | sort | uniq
3131
fi

0 commit comments

Comments
 (0)