Update check #15020
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 check | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 * * * *' | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Use Node.js 16.x | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16.x | |
- name: Install system dependencies | |
run: sudo apt-get update && sudo apt-get install -y git curl jq | |
- name: 'Get Previous tag' | |
id: previoustag | |
uses: 'WyriHaximus/github-action-get-previous-tag@v1' | |
with: | |
fallback: 0000000 | |
- name: 'Run the update script' | |
id: update | |
env: | |
PREVIOUS_TAG: '${{ steps.previoustag.outputs.tag }}' | |
DOCKER_TOKEN: ${{secrets.DOCKER_TOKEN}} | |
GH_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
run: | | |
npm install | |
node ./ci/update.mjs |