-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
36 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Deploy Action Code | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
paths-ignore: [ 'dist/*.js' ] | ||
|
||
jobs: | ||
deploy-action-code: | ||
name: Deploy Action Code | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install dependencies | ||
run: sudo npm i -g typescript @vercel/ncc | ||
- uses: actions/checkout@v3.1.0 | ||
with: | ||
token: ${{ secrets.BOT_TOKEN }} | ||
- name: Generate action code | ||
run: npm run deploy | ||
- name: Configure repository | ||
env: | ||
BOT_USERNAME: ${{ secrets.BOT_USERNAME }} | ||
run: | | ||
git config user.name "${BOT_USERNAME}" | ||
git config user.email "${BOT_USERNAME}@users.noreply.github.com" | ||
- name: Commit changes | ||
run: | | ||
if ! git diff --exit-code --quiet; then | ||
git add . | ||
git commit -m '[AUTO] Update generated code' | ||
git push | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters