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

Commit

Permalink
Merge pull request #251 from JensDll/staging
Browse files Browse the repository at this point in the history
github-actions: merge staging into main
  • Loading branch information
JensDll committed May 29, 2023
2 parents e82f7c5 + b88a3ed commit 9012121
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 23 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/deploy_docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,8 @@ jobs:
- name: Building and pushing container image
uses: docker/build-push-action@v4.0.0
with:
context: services/steganography.api
# Build sometimes fails on ARM
# https://github.com/NuGet/Home/issues/12227
context: services
file: services/steganography.api/Dockerfile
platforms: |
linux/amd64,linux/arm64
push: true
Expand Down
20 changes: 0 additions & 20 deletions .github/workflows/merge_main.yaml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/merge_staging_main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Merge staging into main

on:
pull_request:
branches:
- main
workflow_dispatch:

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

- name: Creating pull request
uses: ./.github/actions/create_pull
with:
# Make sure to trigger pull request workflows
github_token: ${{ secrets.WORKFLOW_TOKEN }}
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 9012121

Please sign in to comment.