Skip to content

Commit

Permalink
Fix publish job merging to main by using PR
Browse files Browse the repository at this point in the history
  • Loading branch information
niallthomson committed May 3, 2023
1 parent 468c4ea commit 7d3f306
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/publish-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
permissions:
id-token: write
contents: write
pull-requests: write

jobs:

Expand Down Expand Up @@ -99,15 +100,12 @@ jobs:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.tag }}

- name: Merge to main
uses: devmasx/merge-branch@master
with:
type: now
from_branch: ${{ github.event.inputs.tag }}
target_branch: main
github_token: ${{ github.token }}
message: Release ${{ github.event.inputs.tag }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh pr create -B main -H release/${{ github.event.inputs.tag }} --title 'chore(release): ${{ github.event.inputs.tag }}' --body 'Generate pull request for release'
- name: Build Changelog
id: github_release
Expand Down
6 changes: 6 additions & 0 deletions release-notes-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
}
],
"ignore_labels": [
"release",
"deps",
"dependabot"
],
Expand All @@ -45,6 +46,11 @@
"pattern": "^chore(deps)",
"on_property": "title",
"target": "deps"
},
{
"pattern": "^chore(release)",
"on_property": "title",
"target": "release"
}
]
}

0 comments on commit 7d3f306

Please sign in to comment.