Check plugin updates #792
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: Check plugin updates | |
on: | |
schedule: | |
- cron: '0 0 * * *' # every day at midnight | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
fetch-depth: 0 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: Install Dependencies | |
run: npm install | |
working-directory: ./tools | |
- name: Restore correct mtime | |
run: | | |
sudo apt install git-restore-mtime | |
git restore-mtime | |
- name: Set force environment variable if manually triggered | |
if: github.event_name == 'workflow_dispatch' | |
run: echo "FORCE_RENDER=true" >> $GITHUB_ENV | |
- name: Update plugins list | |
run: npm run update-all | |
working-directory: ./tools | |
- name: Commit & Push changes | |
uses: Andro999b/push@v1.3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} |