delete worker script before attempting to delete KV (#51) #29
Workflow file for this run
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
name: Generate js | |
on: | |
push: | |
paths: | |
- 'pkg/cloudflare/worker/**' | |
- '.github/workflows/update-js.yml' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Create local changes | |
run: | | |
make build-worker-js | |
- name: Commit files | |
if: ${{ github.event_name == 'push'}} | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git commit -m "Update dist js" pkg/cloudflare/worker/dist/main.js || exit 0 | |
#token to expire on 09/19/2024 | |
- name: Push changes | |
if: ${{ github.event_name == 'push'}} | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.REPO_ACCESS_TOKEN }} | |
branch: ${{ github.ref }} |