Merge pull request #10 from iach526526/my-single-change #6
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: List Clubs in Text | |
on: | |
push: | |
paths: | |
- 'converted/club/**' | |
- ".github/workflows/list-club.yml" | |
workflow_dispatch: | |
jobs: | |
convert: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 檢出原始碼 | |
uses: actions/checkout@v2 | |
- name: 列出社團 | |
run: cd converted/club && ls > ../../club.txt | |
- name: 提交變更 | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add . | |
if git diff --staged --quiet; then | |
echo "No changes" | |
else | |
git commit -m "👥更新社團列表" | |
git push | |
fi | |