Skip to content

feat: add artifact upload step to GTFS update workflow #9

feat: add artifact upload step to GTFS update workflow

feat: add artifact upload step to GTFS update workflow #9

Workflow file for this run

name: Update GTFS Data
on:
schedule:
- cron: "0 0 1 * *"
workflow_dispatch:
permissions:
contents: write
jobs:
update-gtfs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 24
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 24
- name: Setup Git
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
- name: Checkout gtfs branch
run: |
rm -rf gtfs-branch
chmod +x ./get-input.sh
./get-input.sh
git clone --branch gtfs --single-branch https://github.com/${{ github.repository }}.git gtfs-branch
- name: Run Gradle task to update GTFS data
run: |
cd gtfs-branch
chmod +x gradlew
./gradlew updateGtfs --args="../input.zip ./files/$(date +'%Y-%m-%d').zip ../cache.tsv ${{ secrets.MAPYCZ_API_KEY }}"
- name: Upload artifact
run: : |

Check failure on line 43 in .github/workflows/update.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/update.yml

Invalid workflow file

You have an error in your yaml syntax on line 43
cp ./files/$(date +'%Y-%m-%d').zip ./files/latest.zip
git push https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git gtfs