diff --git a/.github/workflows/gh-pages.yaml b/.github/workflows/gh-pages.yaml index 7811cbd..5c85406 100644 --- a/.github/workflows/gh-pages.yaml +++ b/.github/workflows/gh-pages.yaml @@ -9,6 +9,11 @@ jobs: runs-on: ubuntu-latest + # if: contains(github.event.head_commit.message, 'release') + + permissions: + contents: write + strategy: matrix: node-version: [20.x] @@ -29,4 +34,4 @@ jobs: REPO: self BRANCH: gh-pages FOLDER: release - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/update-charwords.yaml b/.github/workflows/update-charwords.yaml new file mode 100644 index 0000000..49362a6 --- /dev/null +++ b/.github/workflows/update-charwords.yaml @@ -0,0 +1,34 @@ +name: Update charwords + +on: + push: + branches: [ main ] + schedule: + - cron: '0 0 * * 0' + +jobs: + build: + + runs-on: ubuntu-latest + + permissions: + contents: write + + strategy: + matrix: + node-version: [20.x] + + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + - name: Install dependencies + run: npm i + - name: Build all + run: npm run charwords + - name: Commit changes if any + uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: "chore(charwords): auto update" \ No newline at end of file