Remove PR creation from release job. (#2109)
This commit is contained in:
Родитель
c32ecd8754
Коммит
41945612a2
|
@ -65,7 +65,7 @@ jobs:
|
|||
env:
|
||||
DOCKERHUB_ORGANISATION: ${{ secrets.DOCKER_REPOSITORY }}
|
||||
|
||||
CreatePRToUpdateDoc:
|
||||
CreateBranchToUpdateDoc:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
@ -87,14 +87,10 @@ jobs:
|
|||
git add docs/quickstart.md
|
||||
git commit -m "$DESCRIPTION"
|
||||
git push --set-upstream origin $BRANCH_NAME
|
||||
- name: Create pull request
|
||||
run: |
|
||||
gh pr create --repo ${{ github.repository }} --head $BRANCH_NAME --base "docs/main" --title "$DESCRIPTION" \
|
||||
--body "$DESCRIPTION"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
CreatePRToUpdateBicep:
|
||||
CreateBranchToUpdateBicep:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
ARM_FILE: Template/azuredeploy.json
|
||||
|
@ -124,10 +120,6 @@ jobs:
|
|||
git add $ARM_FILE
|
||||
git commit -m "$DESCRIPTION"
|
||||
git push --set-upstream origin $BRANCH_NAME
|
||||
- name: Create pull request
|
||||
run: |
|
||||
gh pr create --repo ${{ github.repository }} --head $BRANCH_NAME --base dev --title "$DESCRIPTION" \
|
||||
--body "$DESCRIPTION"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
|
@ -173,4 +165,4 @@ jobs:
|
|||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
needs:
|
||||
[BuildAndPushDockerImages, CreateManifests, CreatePRToUpdateDoc, CreatePRToUpdateBicep]
|
||||
[BuildAndPushDockerImages, CreateManifests, CreateBranchToUpdateDoc, CreateBranchToUpdateBicep]
|
||||
|
|
11
README.md
11
README.md
|
@ -130,9 +130,16 @@ Write release notes to the [release notes documentation](https://github.com/Azur
|
|||
|
||||
Go to the [Create draft release workflow](https://github.com/Azure/iotedge-lorawan-starterkit/actions/workflows/create_release.yaml) and specify the release version before running the workflow.
|
||||
|
||||
### Merge 2 PRs
|
||||
### Create and merge 2 PRs
|
||||
|
||||
The Prerelease workflow will create 2 PRs, one PR to update the Starter Kit version in Bicep and one PR to update the Button URL. Merge these 2 PRs.
|
||||
The release workflow will create 2 branches:
|
||||
- `docs/release-${RELEASE_VERSION}-${GITHUB_RUN_ID}`
|
||||
This branch updates the Button URL.
|
||||
|
||||
- `feature/update-version-${RELEASE_VERSION}-${GITHUB_RUN_ID}`
|
||||
This branch updates the Starter Kit version in Bicep.
|
||||
|
||||
Created 2 PRs from these branches, verify the PRs look good and merge them.
|
||||
|
||||
### Update master
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче