OHM Upstream Sync #14
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: OHM Upstream Sync | |
on: | |
schedule: | |
- cron: "20 5,17 * * *" | |
workflow_dispatch: | |
jobs: | |
upstream-sync: | |
name: Upstream Sync | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Check out our repository to the runner | |
uses: actions/checkout@v4 | |
- name: Check out the upstream repository to the runner | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
UPSTREAM: https://github.com/tyrasd/overpass-turbo | |
run: | | |
git config --global user.name "github-actions" | |
git config --global user.email "[email protected]" | |
git remote add upstream "${UPSTREAM}" | |
- name: Make our script executable | |
run: chmod +x ./scripts/upstream_sync.sh | |
- name: Run sync script | |
run: ./scripts/upstream_sync.sh |