Skip to content

Commit 37c4843

Browse files
authored
Merge pull request #64 from sanak/workflows/create-update-pr
Add GitHub Actions workflow for update PR
2 parents 0434344 + 65cecbb commit 37c4843

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/update-pr.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Docker pgRouting update PR
2+
3+
on:
4+
schedule:
5+
# Run at 00:00 UTC
6+
- cron: '0 0 * * *'
7+
workflow_dispatch:
8+
9+
defaults:
10+
run:
11+
shell: bash
12+
13+
jobs:
14+
make-update:
15+
name: Create update PR after make update
16+
runs-on: ubuntu-24.04
17+
18+
steps:
19+
- name: Checkout source
20+
uses: actions/checkout@v4
21+
22+
- name: Make update
23+
run: make update
24+
25+
- name: Check update
26+
id: check-update
27+
run: |
28+
echo "updated=$(git status --porcelain | wc -l)" >> $GITHUB_OUTPUT
29+
- name: Create Pull Request
30+
if: steps.check-update.outputs.updated > 0
31+
uses: peter-evans/create-pull-request@v7
32+
with:
33+
commit-message: 'Update hashes and versions'
34+
branch: update-hashes-and-versions
35+
delete-branch: true
36+
title: 'Update hashes and versions'

0 commit comments

Comments
 (0)