Update events.json from Airtable #265
This file contains hidden or 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 events.json from Airtable | |
| on: | |
| workflow_dispatch: # Manual trigger | |
| schedule: | |
| - cron: '0 0 * * *' # Runs daily at midnight UTC | |
| jobs: | |
| process_airtable_and_fork: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Set Up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: '3.3.6' | |
| bundler-cache: true | |
| - name: Fetch Data from Airtable and Create a branch if events.json data changes | |
| env: | |
| AIRTABLE_API_KEY: ${{ secrets.AIRTABLE_API_KEY }} | |
| AIRTABLE_BASE_ID: ${{ secrets.AIRTABLE_BASE_ID }} | |
| AIRTABLE_TABLE_NAME: ${{ secrets.AIRTABLE_TABLE_NAME }} | |
| run: bundle exec ruby lib/airtable.rb |