Skip to content

Commit

Permalink
Skip steps on pull_request
Browse files Browse the repository at this point in the history
  • Loading branch information
aadnekar committed Jan 18, 2024
1 parent 8c48679 commit fafb924
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build_darwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- uses: ./.github/build_action

- name: Fetch certificate file
if: ${{ github.event_name == 'pull_request' }} == false
if: ${{ github.event_name != 'pull_request' }} == false
env:
NORDIC_SIGNING_CERTIFICATE:
${{ secrets.NORDIC_SIGNING_CERTIFICATE_P12 }}
Expand All @@ -32,7 +32,7 @@ jobs:
./nordic_signing_certificate.p12

- name: Run Electron Builder
if: ${{ github.event_name == 'pull_request' }} == false
if: ${{ github.event_name != 'pull_request' }} == false
env:
CSC_LINK: ./nordic_signing_certificate.p12
CSC_KEY_PASSWORD: ''
Expand All @@ -42,7 +42,7 @@ jobs:
run: npx electron-builder -p never ${{ inputs.electronArgument }}

- name: Publish built artifact
if: ${{ github.event_name == 'pull_request' }} == false
if: ${{ github.event_name != 'pull_request' }} == false
uses: actions/upload-artifact@v3
with:
name:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ jobs:
- uses: ./.github/build_action

- name: Run Electron Builder
if: ${{ github.event_name != 'pull_request' }} == false
run: npx electron-builder -p never ${{ inputs.electronArgument }}

- name: Publish built artifact
if: ${{ github.event_name != 'pull_request' }} == false
uses: actions/upload-artifact@v3
with:
name: nRF Connect for Desktop linux
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build_win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
- uses: ./.github/build_action

- name: Fetch certificate file
if: ${{ github.event_name != 'pull_request' }} == false
shell: bash
env:
NORDIC_SIGNING_CERTIFICATE:
Expand All @@ -32,13 +33,15 @@ jobs:
./nordic_signing_certificate.pfx

- name: Run Electron Builder
if: ${{ github.event_name != 'pull_request' }} == false
env:
CSC_LINK: ./nordic_signing_certificate.pfx
CSC_KEY_PASSWORD:
${{ secrets.NORDIC_SIGNING_CERTIFICATE_PFX_PASS }}
run: npx electron-builder -p never ${{ inputs.electronArgument }}

- name: Publish built artifact
if: ${{ github.event_name != 'pull_request' }} == false
uses: actions/upload-artifact@v3
with:
name: nRF Connect for Desktop win32
Expand Down

0 comments on commit fafb924

Please sign in to comment.