feat: updated check security behavior (#30) #38
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 | |
workflow_dispatch: | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@master | |
- name: Run GitHub File Sync | |
uses: BetaHuhn/repo-file-sync-action@v1 | |
with: | |
GH_PAT: ${{ secrets.PERSONAL_TOKEN }} | |
CONFIG_PATH: configs/sync-workflows.yml | |
SKIP_PR: true | |
COMMIT_PREFIX: "" | |
- if: ${{ failure() }} | |
run: sleep 60 | |
- if: ${{ failure() }} | |
name: Run GitHub File Sync (PR) | |
uses: BetaHuhn/repo-file-sync-action@v1 | |
with: | |
GH_PAT: ${{ secrets.PERSONAL_TOKEN }} | |
CONFIG_PATH: configs/sync-workflows.yml | |
COMMIT_PREFIX: "" |