-
Notifications
You must be signed in to change notification settings - Fork 14
41 lines (38 loc) · 1.41 KB
/
update-core.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Update Core to Latest Commit
on:
schedule:
- cron: '40 1 * * *'
workflow_dispatch:
jobs:
update-pomerium-core:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Setup Go
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34
with:
go-version: 1.23.x
- name: Update Core
run: |
go get -u github.com/pomerium/pomerium@main
go mod tidy
- name: Check for changes
id: git-diff
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git add go.mod go.sum
git diff --cached --exit-code || echo "changed=true" >> $GITHUB_OUTPUT
- name: Create Pull Request
if: ${{ steps.git-diff.outputs.changed }} == 'true'
uses: peter-evans/create-pull-request@67ccf781d68cd99b580ae25a5c18a1cc84ffff1f
with:
author: GitHub Actions <[email protected]>
body: "This PR updates the Pomerium Core to the latest commit in main"
branch: ci/update-core
commit-message: "ci: update core to latest commit in main"
delete-branch: true
labels: ci
title: "ci: update core to latest commit in main"
token: ${{ secrets.APPARITOR_GITHUB_TOKEN }}