Sync with OpenCC #3
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: Sync with OpenCC | |
on: | |
schedule: | |
- cron: '0 4 2 * *' | |
# * is a special character in YAML so you have to quote this string | |
workflow_dispatch: | |
jobs: | |
my_first_job_id: | |
name: Sync with OpenCC | |
runs-on: ubuntu-latest | |
steps: | |
- name: Job's checkout | |
uses: actions/checkout@master | |
- name: Show some info and switch branch | |
run: | | |
pwd | |
ls -la | |
git branch -a | |
git fetch origin main | |
git branch -a | |
git config user.name bot | |
git config user.email [email protected] | |
git config --list | |
env | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Run the bash | |
run: bash sync_opencc.sh |