Skip to content
This repository was archived by the owner on Sep 4, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 26 additions & 7 deletions .github/workflows/create-release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,32 @@ on:
push:
branches:
- main
- release/stg

permissions:
contents: read
pull-requests: write


jobs:
create-release-pr:
create-release-pr-stg:
runs-on: ubuntu-latest
if: github.event_name == 'push' && contains(github.ref, 'main')
steps:
- uses: jdx/mise-action@v2
with:
experimental: true
- run: mise use -g github:odanado/git-pr-release-go

- run: git-pr-release-go -help

- run: git-pr-release-go --from main --to release/stg
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

create-release-pr-prod:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
if: github.event_name == 'push' && contains(github.ref, 'release/stg')
steps:
- uses: jdx/mise-action@v2
with:
Expand All @@ -18,6 +37,6 @@ jobs:

- run: git-pr-release-go -help

# - run: git-pr-release-go --from main --to release/production
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: git-pr-release-go --from release/stg --to release/prod
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# git-pr-release-go-issues-10
# git-pr-release-go-issues-10

- fix1
- fix2