mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
Update OSS workflow so not all issues get put in the UI board (#16666)
If we don't guard against pull_request being null, we do a lot of extra checkout and path filtering, and it ends up putting everything in the UI board. I tested this in another repo, and it seems to behave correctly.
This commit is contained in:
committed by
GitHub
parent
75d154c26c
commit
7cada26a5c
14
.github/workflows/oss.yml
vendored
14
.github/workflows/oss.yml
vendored
@@ -18,8 +18,10 @@ jobs:
|
||||
name: Add issue or PR to projects
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: dorny/paths-filter@v2
|
||||
- if: github.event.pull_request != null
|
||||
uses: actions/checkout@v3
|
||||
- if: github.event.pull_request != null
|
||||
uses: dorny/paths-filter@v2
|
||||
id: changes
|
||||
with:
|
||||
# derived from CODEOWNERS
|
||||
@@ -57,13 +59,13 @@ jobs:
|
||||
|
||||
- name: "Default to core board"
|
||||
run: echo "PROJECT=170" >> $GITHUB_ENV
|
||||
- if: steps.changes.outputs.cryptosec == 'true'
|
||||
- if: github.event.pull_request != null && steps.changes.outputs.cryptosec == 'true'
|
||||
run: echo "PROJECT=172" >> $GITHUB_ENV
|
||||
- if: steps.changes.outputs.ecosystem == 'true'
|
||||
- if: github.event.pull_request != null && steps.changes.outputs.ecosystem == 'true'
|
||||
run: echo "PROJECT=169" >> $GITHUB_ENV
|
||||
- if: steps.changes.outputs.devex == 'true'
|
||||
- if: github.event.pull_request != null && steps.changes.outputs.devex == 'true'
|
||||
run: echo "PROJECT=176" >> $GITHUB_ENV
|
||||
- if: steps.changes.outputs.ui == 'true'
|
||||
- if: github.event.pull_request != null && steps.changes.outputs.ui == 'true'
|
||||
run: echo "PROJECT=171" >> $GITHUB_ENV
|
||||
|
||||
- uses: actions/add-to-project@v0.3.0
|
||||
|
||||
Reference in New Issue
Block a user