-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (36 loc) · 1.3 KB
/
update-pomerium.yaml
File metadata and controls
42 lines (36 loc) · 1.3 KB
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
42
name: Update Pomerium
on:
schedule:
- cron: "40 1 * * *"
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
with:
submodules: "true"
token: ${{ secrets.APPARITOR_GITHUB_TOKEN }}
- name: Update Pomerium
run: make update-pomerium
- name: Generate
run: make generate
- name: Check for changes
id: git-diff
run: |
git config --global user.email "apparitor@users.noreply.github.com"
git config --global user.name "GitHub Actions"
git add deps/github.com/pomerium/enterprise-client
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@271a8d0340265f705b14b6d32b9829c1cb33d45e
with:
author: GitHub Actions <apparitor@users.noreply.github.com>
body: "This PR updates Pomerium Dependencies"
commit-message: "ci: update pomerium dependencies"
delete-branch: true
labels: ci
title: "ci: update pomerium dependencies"
token: ${{ secrets.APPARITOR_GITHUB_TOKEN }}