Skip to content

Commit

Permalink
Merge pull request #126 from snow-actions/npm-run-prepare
Browse files Browse the repository at this point in the history
Build workflow
  • Loading branch information
SnowCait authored Apr 22, 2024
2 parents 58a6b16 + 30df307 commit 6924049
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build

on:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- run: npm run prepare
- name: Diff
id: diff
run: |
git add -N .
git diff --name-only --exit-code
continue-on-error: true
- uses: snow-actions/git-config-user@v1.0.0
- name: Commit & Push
run: |
set -x
git add .
git commit -m 'npm run prepare'
git push
if: steps.diff.outcome == 'failure'

0 comments on commit 6924049

Please sign in to comment.