mirror of
https://github.com/awesome-selfhosted/awesome-selfhosted-data.git
synced 2026-03-11 08:55:24 +00:00
- cancel other pending/in-progress workflows if a new commit is pushed to the ref - ref. https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency
27 lines
703 B
YAML
27 lines
703 B
YAML
on:
|
|
schedule:
|
|
- cron: '22 22 * * *'
|
|
|
|
env:
|
|
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
|
|
|
concurrency:
|
|
group: ${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
test_schedule:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- run: make update_metadata
|
|
- run: make awesome_lint
|
|
- run: make export
|
|
- name: commit and push changes
|
|
run: |
|
|
git config user.name awesome-selfhosted-bot
|
|
git config user.email github-actions@github.com
|
|
git add software/ tags/ platforms/ licenses*.yml
|
|
git diff-index --quiet HEAD || git commit -m "[bot] update projects metadata"
|
|
git push
|
|
- run: make url_check
|