Merge pull request #8 from hieu-ht/update_github_action #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 Files | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
# replace | |
- name: Replace Front Matter | |
run: | | |
sed -i 's/<!-- fury_frontmatter --/---/g' `grep fury_frontmatter -rl` | |
sed -i 's/-- fury_frontmatter -->/---/g' `grep fury_frontmatter -rl` | |
- name: sync | |
uses: BetaHuhn/repo-file-sync-action@v1 | |
with: | |
GH_PAT: ${{ secrets.GH_PAT }} | |
SKIP_PR: true | |