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:
Sped0n
2023-11-04 21:24:58 +08:00
parent 08eeb26632
commit 8591f596d0

View File

@@ -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"