mirror of
https://github.com/awesome-selfhosted/awesome-selfhosted-data.git
synced 2026-03-11 08:55:24 +00:00
- automate lint/build on changes - only run metadata updates from GH actions schedules, not from main CI workflow - ref. https://github.com/nodiscc/hecat/issues/26 - ref. https://github.com/awesome-selfhosted/awesome-selfhosted-data/issues/14 - ref. https://github.com/awesome-selfhosted/awesome-selfhosted-data/issues/4
20 lines
551 B
YAML
20 lines
551 B
YAML
on:
|
|
schedule:
|
|
- cron: '55 20 * * 1'
|
|
|
|
env:
|
|
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
|
|
|
jobs:
|
|
test_schedule:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- run: make update_metadata
|
|
- 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
|