ci: enable auto squash merge for web api update

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens Langhammer 2023-01-11 17:15:19 +01:00
parent a64e87a6b1
commit 7a1050300d
No known key found for this signature in database
4 changed files with 10 additions and 6 deletions

View File

@ -193,7 +193,7 @@ jobs:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Building Docker Image
- name: Build Docker Image
uses: docker/build-push-action@v3
with:
secrets: |

View File

@ -80,7 +80,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Generate API
run: make gen-client-go
- name: Building Docker Image
- name: Build Docker Image
uses: docker/build-push-action@v3
with:
push: ${{ steps.ev.outputs.shouldBuild == 'true' }}

View File

@ -27,7 +27,7 @@ jobs:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Building Docker Image
- name: Build Docker Image
uses: docker/build-push-action@v3
with:
push: ${{ github.event_name == 'release' }}
@ -75,7 +75,7 @@ jobs:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Building Docker Image
- name: Build Docker Image
uses: docker/build-push-action@v3
with:
push: ${{ github.event_name == 'release' }}

View File

@ -28,8 +28,7 @@ jobs:
run: |
export VERSION=`node -e 'console.log(require("../gen-ts-api/package.json").version)'`
npm i @goauthentik/api@$VERSION
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
- uses: peter-evans/create-pull-request@v4
id: cpr
with:
token: ${{ secrets.BOT_GITHUB_TOKEN }}
@ -39,3 +38,8 @@ jobs:
body: "web: bump API Client version"
delete-branch: true
signoff: true
- uses: peter-evans/enable-pull-request-automerge@v2
with:
token: ${{ secrets.BOT_GITHUB_TOKEN }}
pull-request-number: ${{ steps.cpr.outputs.pull-request-number }}
merge-method: squash