Workflow Name Upgrade Packages #118
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
# Run on 00:00 every Monday | |
# Upgrade package-lock.json then git push | |
# | |
# > Note: You cannot trigger new workflow runs using the GITHUB_TOKEN | |
# So the git push in this workflow will not trigger build-deploy.yml | |
# But we need build-deploy.yml to listen to upgrade.yml succeeded | |
name: Workflow Name Upgrade Packages | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * 1' # 00:00 every Monday | |
# Defining access for the GITHUB_TOKEN scopes (GITHUB_TOKEN used actions/checkout@v3 could git push) | |
permissions: | |
contents: write | |
jobs: | |
job_id_upgrade_packages: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Step Name Upgrade Packages | |
run: | | |
./upgrade.sh |