Fix PR artifact permissions (#1190)

1.2-legacy
Ben Meadors 2022-02-08 10:29:57 -06:00 zatwierdzone przez GitHub
rodzic bbcd59ec7b
commit e649bc84e1
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -6,7 +6,7 @@ on:
paths-ignore:
- '**.md'
- '**.yml'
pull_request:
pull_request_target:
branches: [ master ]
paths-ignore:
- '**.md'
@ -142,10 +142,10 @@ jobs:
path: ./
- name: Pull request artifacts
if: ${{ github.event_name == 'pull_request' }}
if: ${{ github.event_name == 'pull_request_target' || github.event_name == 'pull_request' }}
uses: gavv/pull-request-artifacts@v1.0.0
with:
commit: ${{ github.event.pull_request.head.sha }}
commit: ${{ (github.event.pull_request_target || github.event.pull_request).head.sha }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
artifacts-branch: artifacts
artifacts: ./firmware-${{ steps.version.outputs.version }}.zip