Skip to content

Commit

Permalink
Merge pull request #185 from SoftwareDesignLab/dev-cicdHotfix
Browse files Browse the repository at this point in the history
CI/CD Build and Test Only on Open PR Hotfix
  • Loading branch information
dlg1206 authored Aug 1, 2023
2 parents feb1779 + 6c33867 commit fa42585
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ on:
- 'main' # todo: replace with vars
paths-ignore:
- '**/resources/**'
- '**/sample_sboms/**'

jobs:
build:
runs-on: windows-latest
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/[email protected]
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,17 @@ on:
paths-ignore:
- '**/resources/**'
pull_request:
types: ['opened', 'edited', 'reopened', 'synchronize', 'ready_for_review']
branches:
- 'dev' # todo: replace with vars
- 'main' # todo: replace with vars
paths-ignore:
- '**/resources/**'
- '**/sample_sboms/**'
jobs:
# only run on open pull request
build-test:
runs-on: windows-latest
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/[email protected]
Expand Down

0 comments on commit fa42585

Please sign in to comment.