Skip to content

Commit

Permalink
Merge pull request #30 from srz-zumix/feature/fix_post_action
Browse files Browse the repository at this point in the history
fix post-action
  • Loading branch information
srz-zumix committed Dec 26, 2022
2 parents 997ea79 + 7f121cb commit 305b710
Show file tree
Hide file tree
Showing 6 changed files with 5,352 additions and 243 deletions.
14 changes: 8 additions & 6 deletions resources/post-action/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
build: dist/index.js dist/cleanup.js
build: dist/main/index.js dist/post/index.js

dist/index.js: src/index.js Makefile
ncc build src/index.js
dist/main/index.js: src/index.js Makefile package-lock.json
npx ncc build $< -o dist/main

dist/cleanup.js: src/cleanup.js Makefile
ncc build $< -o tmp
mv tmp/index.js $@
dist/post/index.js: src/cleanup.js Makefile package-lock.json
npx ncc build $< -o dist/post

package-lock.json: package.json
npm install
4 changes: 2 additions & 2 deletions resources/post-action/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ author: 'srz_zumix'

runs:
using: 'node16'
main: 'dist/index.js'
post: 'dist/cleanup.js'
main: 'dist/main/index.js'
post: 'dist/post/index.js'

branding:
icon: 'settings'
Expand Down

0 comments on commit 305b710

Please sign in to comment.