Update Artists #476
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: Run | |
on: | |
workflow_dispatch: | |
push: | |
branches: [main] | |
paths: | |
- 'src/**' | |
- '.github/workflows/run.yaml' | |
schedule: | |
- cron: "00 1 * * *" | |
permissions: | |
contents: write | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run script | |
env: | |
API_KEY: ${{ secrets.API_KEY }} | |
shell: pwsh | |
run: ./src/main.ps1 | Out-File artists.md | |
- name: Push file | |
run: | | |
git config --global user.name "github-actions[bot]" | |
git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
git add ./artists.md | |
git commit -am "[Automated changes] Update artists" | |
git push | |
shell: pwsh |