Rules V42. #52
This file contains hidden or 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: Update database | |
| on: | |
| push: | |
| paths: | |
| - '**.json' | |
| workflow_dispatch: | |
| jobs: | |
| db: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - run: | | |
| git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git config --global user.name "github-actions[bot]" | |
| - uses: LibChecker/lc-add-rules@master | |
| with: | |
| db_path: cloud/rules/v3/rules.db | |
| info_path: cloud/md5/v3 | |
| - name: Commit changes | |
| shell: sh | |
| run: | | |
| set -eu | |
| git add cloud/rules/v3/rules.db | |
| git add cloud/md5/v3 | |
| if ! git diff --cached --quiet; then | |
| git commit -m "Regenerate database" | |
| fi | |
| - name: Push changes | |
| uses: ad-m/[email protected] | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| branch: ${{ github.ref }} |