Skip to content

Commit

Permalink
Create pull request for generated build
Browse files Browse the repository at this point in the history
  • Loading branch information
owenatgov committed Jan 24, 2025
1 parent e351b8a commit 78fcf3a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,13 @@ jobs:
- name: Build release
run: npm run build:release
- name: Create pull request
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.name 'govuk-design-system-ci'
git config --global user.email '[email protected]'
git commit -am "Release ${{ inputs.version }}"
git checkout -b release-${{ inputs.version }}
git push -u origin release-${{ inputs.version }}
gh pr create --base main --head release-${{ inputs.version }} --title "Release ${{ inputs.version }}" --body-file "release-notes-body"

0 comments on commit 78fcf3a

Please sign in to comment.