Skip to content

OHM Upstream Sync

OHM Upstream Sync #14

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