update metadata #504
This file contains 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 metadata | |
on: | |
schedule: | |
- cron: '22 22 * * *' | |
workflow_dispatch: | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
concurrency: | |
group: update-metadata-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
update-metadata: | |
if: github.repository == 'awesome-selfhosted/awesome-selfhosted-data' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: make install | |
- run: make update_metadata | |
- name: commit and push changes | |
run: | | |
git config user.name awesome-selfhosted-bot | |
git config user.email [email protected] | |
git add software/ tags/ platforms/ licenses*.yml | |
git diff-index --quiet HEAD || git commit -m "[bot] update projects metadata" | |
git push | |
build: | |
if: github.repository == 'awesome-selfhosted/awesome-selfhosted-data' | |
needs: update-metadata | |
uses: ./.github/workflows/build.yml | |
secrets: inherit |