admin-vben/.github/workflows/build.yml

42 lines
864 B
YAML
Raw Normal View History

2024-08-03 02:12:45 +00:00
# name: Dependabot post-update
name: Build detection
2024-06-16 15:50:17 +00:00
on:
pull_request_target:
types: [opened, synchronize, reopened]
branches:
- main
env:
HUSKY: "0"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
permissions:
contents: read
pull-requests: write
2024-06-16 15:50:17 +00:00
jobs:
post-update:
2024-08-03 02:12:45 +00:00
# if: ${{ github.actor == 'dependabot[bot]' }}
2024-06-16 15:50:17 +00:00
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Checkout out pull request
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2024-06-16 15:50:17 +00:00
run: |
gh pr checkout ${{ github.event.pull_request.number }}
- name: Setup Node
uses: ./.github/actions/setup-node
2024-06-16 15:50:17 +00:00
- name: Build
2024-06-16 15:50:17 +00:00
run: |
pnpm run build