Skip to content

Commit ebbb9ea

Browse files
committed
🔧 update (ci): skip publish and container build steps on pull requests
1 parent 046823f commit ebbb9ea

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/container.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
uses: docker/setup-qemu-action@v4
2727

2828
- name: Build and Push Container
29+
if: ${{ github.event_name != 'pull_request' }}
2930
uses: wgtechlabs/container-build-flow-action@v1.7.1
3031
with:
3132
registry: both

.github/workflows/package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
npm-token: ${{ secrets.NPM_TOKEN }}
5656
github-token: ${{ secrets.GITHUB_TOKEN }}
5757
publish-enabled: 'true'
58-
dry-run: ${{ github.event.inputs.dry-run || 'false' }}
58+
dry-run: ${{ github.event_name == 'pull_request' && 'true' || github.event.inputs.dry-run || 'false' }}
5959
build-script: 'build'
6060
audit-enabled: 'true'
6161
audit-level: 'high'

0 commit comments

Comments
 (0)