Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

Commit

Permalink
add back auto merge to main
Browse files Browse the repository at this point in the history
  • Loading branch information
JensDll committed May 29, 2023
1 parent 0c19a07 commit b88a3ed
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 21 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/merge_main.yaml

This file was deleted.

20 changes: 19 additions & 1 deletion .github/workflows/merge_staging_main.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
name: Merge staging into main

on:
pull_request:
branches:
- main
workflow_dispatch:

jobs:
create_pull:
create_pull_request:
if: github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- name: Checking out the repository
Expand All @@ -18,3 +22,17 @@ jobs:
base: main
head: staging
title: "github-actions: merge staging into main"

merge_pull_request:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Checking out the repository
uses: actions/checkout@v3.5.2

- name: Merging pull request
uses: ./.github/actions/merge_pull
with:
# Make sure to trigger push workflows
github_token: ${{ secrets.WORKFLOW_TOKEN }}
pull_number: ${{ github.event.number }}

0 comments on commit b88a3ed

Please sign in to comment.