This is dumb, but I think necessary. #6
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: Build | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
with: | |
persist-credentials: false | |
- name: Install Node.js | |
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af | |
with: | |
node-version: 20 | |
cache: npm | |
- run: npm ci | |
- run: rm .gitignore | |
- run: | | |
git pull | |
git config --local user.email "action@github.com" | |
git config --local user.name "GitHub Action" | |
git add block*.js | |
- run: git commit -m "Updating build" | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
branch: developBuilds | |
directory: . | |
github_token: ${{ secrets.GITHUB_TOKEN }} |