Generate Jabba Index #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: Generate Jabba Index | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
generate-index: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 22.5.1 | |
- run: npm ci | |
- name: Generate Index | |
id: generate_index | |
run: node src/index.js | |
- name: Push Index file | |
uses: dmnemec/copy_file_to_another_repo_action@main | |
env: | |
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} | |
with: | |
source_file: 'index.json' | |
destination_repo: 'Jabba-Team/index' | |
user_email: '[email protected]' | |
user_name: 'patrick-mccourt' | |
commit_message: 'daily update for the index file' |