OHM Upstream Sync #25
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 | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Check out the upstream repository | |
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}" | |
git fetch upstream master | |
- name: Make our script executable | |
run: chmod +x ./scripts/upstream_sync.sh | |
- name: Run sync script | |
run: ./scripts/upstream_sync.sh |