daily-update-metadata.yml 952 B

1234567891011121314151617181920212223242526272829303132333435
  1. name: update metadata
  2. on:
  3. schedule:
  4. - cron: '22 22 * * *'
  5. workflow_dispatch:
  6. env:
  7. GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
  8. concurrency:
  9. group: update-metadata-${{ github.ref }}
  10. cancel-in-progress: true
  11. jobs:
  12. update-metadata:
  13. if: github.repository == 'awesome-selfhosted/awesome-selfhosted-data'
  14. runs-on: ubuntu-latest
  15. steps:
  16. - uses: actions/checkout@v4
  17. - run: make install
  18. - run: make update_metadata
  19. - name: commit and push changes
  20. run: |
  21. git config user.name awesome-selfhosted-bot
  22. git config user.email github-actions@github.com
  23. git add software/ tags/ platforms/ licenses*.yml
  24. git diff-index --quiet HEAD || git commit -m "[bot] update projects metadata"
  25. git push
  26. build:
  27. if: github.repository == 'awesome-selfhosted/awesome-selfhosted-data'
  28. needs: update-metadata
  29. uses: ./.github/workflows/build.yml
  30. secrets: inherit