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:
|
2024-09-21 02:46:38 +00:00
|
|
|
HUSKY: '0'
|
2024-06-16 15:50:17 +00:00
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2024-08-06 14:37:47 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
pull-requests: write
|
|
|
|
|
2024-06-16 15:50:17 +00:00
|
|
|
jobs:
|
|
|
|
post-update:
|
2024-09-25 15:09:48 +00:00
|
|
|
if: github.repository == 'vbenjs/vue-vben-admin'
|
2024-08-03 02:12:45 +00:00
|
|
|
# if: ${{ github.actor == 'dependabot[bot]' }}
|
2024-09-11 15:10:35 +00:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os:
|
|
|
|
- ubuntu-latest
|
|
|
|
# - macos-latest
|
|
|
|
- windows-latest
|
2024-06-16 15:50:17 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Checkout out pull request
|
|
|
|
env:
|
2024-08-06 14:37:47 +00:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2024-06-16 15:50:17 +00:00
|
|
|
run: |
|
|
|
|
gh pr checkout ${{ github.event.pull_request.number }}
|
|
|
|
|
2024-08-06 14:37:47 +00:00
|
|
|
- name: Setup Node
|
|
|
|
uses: ./.github/actions/setup-node
|
2024-06-16 15:50:17 +00:00
|
|
|
|
2024-08-03 21:42:59 +00:00
|
|
|
- name: Build
|
2024-06-16 15:50:17 +00:00
|
|
|
run: |
|
|
|
|
pnpm run build
|