Skip to content

Commit

Permalink
Get last commit on push request instead of actor
Browse files Browse the repository at this point in the history
  • Loading branch information
ZoeySimone committed May 23, 2024
1 parent 9bb47a2 commit 58e107f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/generate_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4.1.1
if: ${{ github.actor != 'github-actions[bot]' }}
if: ${{ github.event.commits[0].author.name != 'github-actions[bot]' }}
with:
ssh-key: ${{ secrets.GH_ACTION_KEY }}
fetch-depth: 2
ref: ${{ github.head_ref }}
- name: "actor name"
run: |
echo "${{ github.actor }}"
echo "${{ github.event.commits[0].author.name }}"
- uses: actions/setup-go@v5
with:
go-version: '1.21.10'
Expand Down

0 comments on commit 58e107f

Please # to comment.