Skip to content

Update Core to Latest Commit #127

Update Core to Latest Commit

Update Core to Latest Commit #127

Workflow file for this run

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@692973e3d937129bcbf40652eb9f2f61becf3332
- name: Setup Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32
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@c5a7806660adbe173f04e3e038b0ccdcd758773c
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 }}