mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-14 10:09:31 -07:00
fix(build.yml): update push artifacts step condition to include push event in addition to merged pull requests to ensure artifacts are pushed on push events as well
This commit is contained in:
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
@@ -3,6 +3,9 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
@@ -74,7 +77,7 @@ jobs:
|
||||
run: pnpm run build
|
||||
|
||||
- name: Push artifacts
|
||||
if: ${{ github.event.pull_request.merged == true && needs.filter.outputs.any_changed == 'true' }}
|
||||
if: ${{ (github.event_name == 'push' || github.event.pull_request.merged == true) && needs.filter.outputs.any_changed == 'true' }}
|
||||
run: |
|
||||
git config --global user.email "noreply@github.com"
|
||||
git config --global user.name "CI"
|
||||
|
||||
Reference in New Issue
Block a user