ci: Don't perform tasks relying on secrets in pull requests

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2021-11-26 04:28:00 +01:00
parent 1b573103cc
commit 0d15216761

View file

@ -42,6 +42,7 @@ jobs:
submodules: recursive submodules: recursive
fetch-depth: 0 fetch-depth: 0
- name: "libobs: Cache" - name: "libobs: Cache"
if: ${{ github.event_name != 'pull_request' }}
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: | path: |
@ -50,6 +51,7 @@ jobs:
build/temp/libobs-src build/temp/libobs-src
key: libobs-${{ matrix.id }}-${{ env.OBS_VERSION }}-${{ env.DOWNLOAD_OBS_HASH }}-${{ secrets.CACHE_VERSION }} key: libobs-${{ matrix.id }}-${{ env.OBS_VERSION }}-${{ env.DOWNLOAD_OBS_HASH }}-${{ secrets.CACHE_VERSION }}
- name: "obsdeps: Cache" - name: "obsdeps: Cache"
if: ${{ github.event_name != 'pull_request' }}
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: | path: |
@ -58,6 +60,7 @@ jobs:
build/temp/obsdeps-src build/temp/obsdeps-src
key: obsdeps-${{ matrix.id }}-${{ env.OBSDEPS_VERSION }}-${{ env.DOWNLOAD_OBSDEPS_HASH }}-${{ secrets.CACHE_VERSION }} key: obsdeps-${{ matrix.id }}-${{ env.OBSDEPS_VERSION }}-${{ env.DOWNLOAD_OBSDEPS_HASH }}-${{ secrets.CACHE_VERSION }}
- name: "qt: Cache" - name: "qt: Cache"
if: ${{ github.event_name != 'pull_request' }}
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: | path: |
@ -66,6 +69,7 @@ jobs:
build/temp/qt-src build/temp/qt-src
key: qt-${{ matrix.id }}-${{ env.OBSDEPS_VERSION }}-${{ env.QT_VERSION }}-${{ secrets.CACHE_VERSION }} key: qt-${{ matrix.id }}-${{ env.OBSDEPS_VERSION }}-${{ env.QT_VERSION }}-${{ secrets.CACHE_VERSION }}
- name: "libaom: Cache" - name: "libaom: Cache"
if: ${{ github.event_name != 'pull_request' }}
uses: actions/cache@v2 uses: actions/cache@v2
id: libaom-cache id: libaom-cache
with: with:
@ -80,7 +84,7 @@ jobs:
curl -L -o "aom.7z" "https://github.com/Xaymar/aom/releases/download/v${{ env.LIBAOM_VERSION }}/aom-windows-64-shared.7z" curl -L -o "aom.7z" "https://github.com/Xaymar/aom/releases/download/v${{ env.LIBAOM_VERSION }}/aom-windows-64-shared.7z"
7z x -y -o"build/libaom/" "aom.7z" 7z x -y -o"build/libaom/" "aom.7z"
- name: "Code Signing" - name: "Code Signing"
if: ${{ github.repository_owner == 'Xaymar' }} if: ${{ github.event_name != 'pull_request' }}
id: codesign id: codesign
shell: bash shell: bash
run: | run: |
@ -122,7 +126,7 @@ jobs:
cmake --build "build/temp" --config RelWithDebInfo --target PACKAGE_7Z cmake --build "build/temp" --config RelWithDebInfo --target PACKAGE_7Z
cmake --build "build/temp" --config RelWithDebInfo --target PACKAGE_ZIP cmake --build "build/temp" --config RelWithDebInfo --target PACKAGE_ZIP
- name: "StreamFX: Signed Installer Preparation" - name: "StreamFX: Signed Installer Preparation"
if: ${{ github.repository_owner == 'Xaymar' }} if: ${{ github.event_name != 'pull_request' }}
id: codesign_install id: codesign_install
shell: bash shell: bash
run: | run: |
@ -192,6 +196,7 @@ jobs:
libcurl4-openssl-dev libcurl4-openssl-dev
${{ matrix.extra_command }} ${{ matrix.extra_command }}
- name: "libobs: Cache" - name: "libobs: Cache"
if: ${{ github.event_name != 'pull_request' }}
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: | path: |
@ -247,6 +252,7 @@ jobs:
submodules: recursive submodules: recursive
fetch-depth: 0 fetch-depth: 0
- name: "libobs: Cache" - name: "libobs: Cache"
if: ${{ github.event_name != 'pull_request' }}
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: | path: |
@ -255,6 +261,7 @@ jobs:
build/temp/libobs-src build/temp/libobs-src
key: libobs-${{ matrix.id }}-${{ env.OBS_VERSION }}-${{ env.DOWNLOAD_OBS_HASH }}-${{ secrets.CACHE_VERSION }} key: libobs-${{ matrix.id }}-${{ env.OBS_VERSION }}-${{ env.DOWNLOAD_OBS_HASH }}-${{ secrets.CACHE_VERSION }}
- name: "obsdeps: Cache" - name: "obsdeps: Cache"
if: ${{ github.event_name != 'pull_request' }}
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: | path: |
@ -263,6 +270,7 @@ jobs:
build/temp/obsdeps-src build/temp/obsdeps-src
key: obsdeps-${{ matrix.id }}-${{ env.OBSDEPS_VERSION }}-${{ env.DOWNLOAD_OBSDEPS_HASH }}-${{ secrets.CACHE_VERSION }} key: obsdeps-${{ matrix.id }}-${{ env.OBSDEPS_VERSION }}-${{ env.DOWNLOAD_OBSDEPS_HASH }}-${{ secrets.CACHE_VERSION }}
- name: "qt: Cache" - name: "qt: Cache"
if: ${{ github.event_name != 'pull_request' }}
uses: actions/cache@v2 uses: actions/cache@v2
id: qt-cache id: qt-cache
with: with: