Skip to content

Commit

Permalink
👷 ci fix release concurrent module prs (#378)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonhir authored Jan 31, 2025
1 parent 927477d commit 136637e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/actions/release-maven/action.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: ""
description: ""
name: "Release Maven"
description: "Executes mvn release and creates a PR for the version change commits"

inputs:
module:
Expand Down Expand Up @@ -65,18 +65,18 @@ runs:
- name: Push changes to new branch
shell: bash
run: |
git checkout -b ${{ github.ref_name }}-version-bump
git push --force origin ${{ github.ref_name }}-version-bump
git checkout -b ${{ github.module }}-version-bump
git push --force origin ${{ github.module }}-version-bump
- name: Create pull request
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
script: |
const { repo, owner } = context.repo;
const pullResult = await github.rest.pulls.create({
title: 'chore: bump release version ${{ github.ref_name }}',
title: 'chore: bump release version ${{ github.module }}',
owner,
repo,
head: '${{ github.ref_name }}-version-bump',
head: '${{ github.module }}-version-bump',
base: '${{ github.ref_name }}',
body: [
'This PR is auto-generated'
Expand Down

0 comments on commit 136637e

Please sign in to comment.