mirror of
https://github.com/bitwarden/server
synced 2025-12-13 14:53:34 +00:00
BRE-87 TEST: Disable version PR creation and approval
This commit is contained in:
60
.github/workflows/version-bump.yml
vendored
60
.github/workflows/version-bump.yml
vendored
@@ -171,37 +171,37 @@ jobs:
|
|||||||
PR_BRANCH: ${{ steps.create-branch.outputs.name }}
|
PR_BRANCH: ${{ steps.create-branch.outputs.name }}
|
||||||
run: git push -u origin $PR_BRANCH
|
run: git push -u origin $PR_BRANCH
|
||||||
|
|
||||||
- name: Create version PR
|
#- name: Create version PR
|
||||||
if: ${{ steps.version-changed.outputs.changes_to_commit == 'TRUE' }}
|
# if: ${{ steps.version-changed.outputs.changes_to_commit == 'TRUE' }}
|
||||||
id: create-pr
|
# id: create-pr
|
||||||
env:
|
# env:
|
||||||
GH_TOKEN: ${{ steps.retrieve-secrets.outputs.github-pat-bitwarden-devops-bot-repo-scope }}
|
# GH_TOKEN: ${{ steps.retrieve-secrets.outputs.github-pat-bitwarden-devops-bot-repo-scope }}
|
||||||
PR_BRANCH: ${{ steps.create-branch.outputs.name }}
|
# PR_BRANCH: ${{ steps.create-branch.outputs.name }}
|
||||||
TITLE: "Bump version to ${{ steps.set-final-version-output.outputs.version }}"
|
# TITLE: "Bump version to ${{ steps.set-final-version-output.outputs.version }}"
|
||||||
run: |
|
# run: |
|
||||||
PR_URL=$(gh pr create --title "$TITLE" \
|
# PR_URL=$(gh pr create --title "$TITLE" \
|
||||||
--base "main" \
|
# --base "main" \
|
||||||
--head "$PR_BRANCH" \
|
# --head "$PR_BRANCH" \
|
||||||
--label "version update" \
|
# --label "version update" \
|
||||||
--label "automated pr" \
|
# --label "automated pr" \
|
||||||
--body "
|
# --body "
|
||||||
## Type of change
|
# ## Type of change
|
||||||
- [ ] Bug fix
|
# - [ ] Bug fix
|
||||||
- [ ] New feature development
|
# - [ ] New feature development
|
||||||
- [ ] Tech debt (refactoring, code cleanup, dependency upgrades, etc)
|
# - [ ] Tech debt (refactoring, code cleanup, dependency upgrades, etc)
|
||||||
- [ ] Build/deploy pipeline (DevOps)
|
# - [ ] Build/deploy pipeline (DevOps)
|
||||||
- [X] Other
|
# - [X] Other
|
||||||
|
#
|
||||||
|
# ## Objective
|
||||||
|
# Automated version bump to ${{ steps.set-final-version-output.outputs.version }}")
|
||||||
|
# echo "pr_number=${PR_URL##*/}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
## Objective
|
#- name: Approve PR
|
||||||
Automated version bump to ${{ steps.set-final-version-output.outputs.version }}")
|
# if: ${{ steps.version-changed.outputs.changes_to_commit == 'TRUE' }}
|
||||||
echo "pr_number=${PR_URL##*/}" >> $GITHUB_OUTPUT
|
# env:
|
||||||
|
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Approve PR
|
# PR_NUMBER: ${{ steps.create-pr.outputs.pr_number }}
|
||||||
if: ${{ steps.version-changed.outputs.changes_to_commit == 'TRUE' }}
|
# run: gh pr review $PR_NUMBER --approve
|
||||||
env:
|
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
PR_NUMBER: ${{ steps.create-pr.outputs.pr_number }}
|
|
||||||
run: gh pr review $PR_NUMBER --approve
|
|
||||||
|
|
||||||
#- name: Merge PR
|
#- name: Merge PR
|
||||||
# if: ${{ steps.version-changed.outputs.changes_to_commit == 'TRUE' }}
|
# if: ${{ steps.version-changed.outputs.changes_to_commit == 'TRUE' }}
|
||||||
|
|||||||
Reference in New Issue
Block a user