Skip to content

Commit

Permalink
ci(update): fix the workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hasundue committed Oct 22, 2023
1 parent 041d606 commit 8382e43
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,18 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.x

- name: Configure Git
run: |
git config --global user.name '${{ github.actor }}'
git config --global user.email '${{ github.actor }}@users.noreply.github.com'
- name: Run Molt
run: deno task update --commit --pre-commit test --summary title.txt --report body.txt
run: deno task update:commit

- name: Push changes
run: git push
Expand Down
3 changes: 2 additions & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"tasks": {
"run": "deno run --allow-env --allow-read --allow-write=. --allow-run --allow-net=deno.land",
"run": "deno run --allow-env --allow-read --allow-write --allow-run --allow-net=deno.land",
"lock": "deno cache --lock=deno.lock --lock-write ./lib/**/*.ts && git add deno.lock",
"test": "deno test -A",
"test:fast": "deno task test --no-check",
"dev": "deno fmt && deno lint && deno task lock && deno task test",
"update": "deno task -q run ./cli.ts check lib/**/*.ts",
"update:commit": "deno task -q run ./cli.ts update lib/**/*.ts --commit --summary title.txt --report body.txt --pre-commit lock test",
"install": "deno install -f -A --name molt cli.ts"
},
"fmt": {
Expand Down

0 comments on commit 8382e43

Please sign in to comment.