awesome-selfhosted-data/.github/workflows/update-metadata.yml
nodiscc 6ad29ab5b8
tools: github actions: run URL checker *after* pushing changes in the scheduled update-metadata workflow
- we want the updates pushed regardless of possible URL check errors
2023-01-24 17:18:29 +01:00

23 lines
635 B
YAML

on:
schedule:
- cron: '22 22 * * *'
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
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