ci: More modifications to validation

Signed-off-by: Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs <me@bjw-s.dev>
This commit is contained in:
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs 2022-01-06 12:17:41 +01:00
parent 49266748b1
commit 7f51945eff
No known key found for this signature in database
GPG Key ID: BC5E2BD907F9A8EC

View File

@ -63,26 +63,17 @@ jobs:
commitHash: ${{ steps.create-commit.outputs.commit_hash }}
needs:
- pr-metadata
steps:
- name: Checkout
if: |
needs.pr-metadata.outputs.isFork == 'true'
uses: actions/checkout@v2
with:
fetch-depth: 0
needs.pr-metadata.outputs.isFork == 'false'
steps:
- name: Get app-token
uses: getsentry/action-github-app-token@v1
id: get-app-token
if: |
needs.pr-metadata.outputs.isFork == 'false'
with:
app_id: ${{ secrets.K8S_AT_HOME_APP_ID }}
private_key: ${{ secrets.K8S_AT_HOME_APP_PRIVATE_KEY }}
- name: Checkout with app-token
if: |
needs.pr-metadata.outputs.isFork == 'false'
uses: actions/checkout@v2
with:
fetch-depth: 0
@ -159,6 +150,7 @@ jobs:
- pr-metadata
- generate-readme
if: |
always() &&
needs.generate-readme.outputs.commitHash == ''
steps:
- name: Checkout
@ -194,6 +186,7 @@ jobs:
- pr-metadata
- generate-readme
if: |
always() &&
needs.generate-readme.outputs.commitHash == ''
steps:
- name: Checkout