mirror of https://github.com/FOME-Tech/wiki.git
Allow dependabot to run build for validation
This commit is contained in:
parent
50706bb204
commit
026f8cf918
|
@ -12,7 +12,7 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.repository_owner == 'FOME-Tech' && github.actor != 'dependabot[bot]'
|
if: github.repository_owner == 'FOME-Tech'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
@ -28,11 +28,13 @@ jobs:
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
|
||||||
- name: Save PR number
|
- name: Save PR number
|
||||||
|
if: github.actor != 'dependabot[bot]'
|
||||||
run: |
|
run: |
|
||||||
echo ${{ github.event.number }} > ./build/PR_NR
|
echo ${{ github.event.number }} > ./build/PR_NR
|
||||||
|
|
||||||
- name: Upload preview build
|
- name: Upload preview build
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
|
if: github.actor != 'dependabot[bot]'
|
||||||
with:
|
with:
|
||||||
name: build
|
name: build
|
||||||
path: build/
|
path: build/
|
||||||
|
|
Loading…
Reference in New Issue