Skip to content

Commit

Permalink
chore: try replacing all checkout events... just because
Browse files Browse the repository at this point in the history
  • Loading branch information
pfeerick committed Jun 20, 2024
1 parent fcf9ba6 commit 087bab8
Showing 1 changed file with 57 additions and 7 deletions.
64 changes: 57 additions & 7 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,16 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Checkout using PR head if sufficent permissions
if: ${{ github.event_name == 'pull_request' && needs.check-permissions.outputs.checkout-priv == 'true'}}
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Checkout
if: ${{ needs.check-permissions.outputs.checkout-priv == 'false' }}
uses: actions/checkout@v4

- name: Use Node.js 20
uses: actions/setup-node@v4
with:
Expand All @@ -50,7 +59,16 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Checkout using PR head if sufficent permissions
if: ${{ github.event_name == 'pull_request' && needs.check-permissions.outputs.checkout-priv == 'true'}}
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Checkout
if: ${{ needs.check-permissions.outputs.checkout-priv == 'false' }}
uses: actions/checkout@v4

- name: Use Node.js 20
uses: actions/setup-node@v4
with:
Expand All @@ -70,7 +88,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Checkout using PR head if sufficent permissions
if: ${{ github.event_name == 'pull_request' && needs.check-permissions.outputs.checkout-priv == 'true'}}
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Checkout
if: ${{ needs.check-permissions.outputs.checkout-priv == 'false' }}
uses: actions/checkout@v4

- name: Use Node.js 20
uses: actions/setup-node@v4
Expand Down Expand Up @@ -98,7 +124,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Checkout using PR head if sufficent permissions
if: ${{ github.event_name == 'pull_request' && needs.check-permissions.outputs.checkout-priv == 'true'}}
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Checkout
if: ${{ needs.check-permissions.outputs.checkout-priv == 'false' }}
uses: actions/checkout@v4

- name: Use Node.js 20
uses: actions/setup-node@v4
Expand All @@ -123,7 +157,7 @@ jobs:

steps:
- name: Checkout using PR head
if: ${{ needs.check-permissions.outputs.checkout-priv == 'true' }}
if: ${{ github.event_name == 'pull_request' && needs.check-permissions.outputs.checkout-priv == 'true'}}
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
Expand Down Expand Up @@ -227,7 +261,15 @@ jobs:
needs: compile

steps:
- uses: actions/checkout@v4
- name: Checkout using PR head if sufficent permissions
if: ${{ github.event_name == 'pull_request' && needs.check-permissions.outputs.checkout-priv == 'true'}}
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Checkout
if: ${{ needs.check-permissions.outputs.checkout-priv == 'false' }}
uses: actions/checkout@v4

- name: Use Node.js 20
uses: actions/setup-node@v4
Expand Down Expand Up @@ -318,7 +360,15 @@ jobs:
needs: compile
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout using PR head if sufficent permissions
if: ${{ github.event_name == 'pull_request' && needs.check-permissions.outputs.checkout-priv == 'true'}}
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Checkout
if: ${{ needs.check-permissions.outputs.checkout-priv == 'false' }}
uses: actions/checkout@v4

- name: Use Node.js 20
uses: actions/setup-node@v4
Expand Down

0 comments on commit 087bab8

Please sign in to comment.