diff --git a/.github/workflows/changes.yml b/.github/workflows/changes.yml index b495da5..b1068f8 100644 --- a/.github/workflows/changes.yml +++ b/.github/workflows/changes.yml @@ -20,10 +20,16 @@ jobs: steps: - name: Checkout source id: source + if: github.event_name != 'pull_request' uses: actions/checkout@v4 with: token: ${{ secrets.BOT_ACCESS_TOKEN }} + - name: PR checkout + id: altsource + if: github.event_name == 'pull_request' + uses: actions/checkout@v4 + - name: Setup golang id: golang uses: actions/setup-go@v4 @@ -52,10 +58,16 @@ jobs: steps: - name: Checkout source id: source + if: github.event_name != 'pull_request' uses: actions/checkout@v4 with: token: ${{ secrets.BOT_ACCESS_TOKEN }} + - name: PR checkout + id: altsource + if: github.event_name == 'pull_request' + uses: actions/checkout@v4 + - name: Setup golang id: golang uses: actions/setup-go@v4 @@ -84,10 +96,16 @@ jobs: steps: - name: Checkout source id: source + if: github.event_name != 'pull_request' uses: actions/checkout@v4 with: token: ${{ secrets.BOT_ACCESS_TOKEN }} + - name: PR checkout + id: altsource + if: github.event_name == 'pull_request' + uses: actions/checkout@v4 + - name: Setup golang id: golang uses: actions/setup-go@v4