diff --git a/.github/workflows/generate_docs.yaml b/.github/workflows/generate_docs.yaml index d631b23..6ed5223 100644 --- a/.github/workflows/generate_docs.yaml +++ b/.github/workflows/generate_docs.yaml @@ -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'