update extension list #4879
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: update-extension-list | |
run-name: update extension list | |
on: | |
push: | |
workflow_dispatch: | |
schedule: | |
- cron: '30 */4 * * *' | |
permissions: | |
contents: write | |
jobs: | |
update-extensions-list-job: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
working-directory: jobs | |
steps: | |
- name: actions-checkout | |
uses: actions/checkout@v3 | |
- name: actions-setup-node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: npm | |
cache-dependency-path: jobs/package-lock.json | |
- name: npm-install | |
run: npm install | |
- name: node-run | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: node ./extensions-update.js | |
- name: git-commit | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: 'update extensions list' | |
commit_options: '--no-verify' | |
file_pattern: '*.json' | |
status_options: '--untracked-files=no' | |
skip_fetch: true | |
skip_checkout: true |