Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Code-freeze #113

Merged
merged 1 commit into from
Feb 12, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions .github/workflows/_code_freeze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: 'Code freeze'
name: "Code freeze"

on:
workflow_call:
Expand All @@ -35,7 +35,7 @@ on:
required: true
outputs:
release-branch:
description: 'Released version (same as its branch name)'
description: "Released version (same as its branch name)"
value: ${{ jobs.create-release-branch.outputs.version }}

defaults:
Expand Down Expand Up @@ -66,8 +66,8 @@ jobs:
VERSION=$(python -c 'import ${{ inputs.python-package }}; print(${{ inputs.python-package }}.__version__)')
echo "version=r$VERSION" | tee -a "$GITHUB_OUTPUT"

echo git switch --force-create r$VERSION origin/main
echo git push -u origin r$VERSION --force
git switch --force-create r$VERSION origin/main
git push -u origin r$VERSION --force

bump-next-version:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:
with:
path: ${{ github.run_id }}
branch: ci/bump-${{ steps.bump-version.outputs.version }}
title: 'Version bump to `${{ steps.bump-version.outputs.version }}`'
title: "Version bump to `${{ steps.bump-version.outputs.version }}`"
body: |
🚀 Version bump ${{ inputs.library-name }} to `${{ steps.bump-version.outputs.version }}`
commit-message: "[🤖]: Howdy folks, let's bump ${{ inputs.library-name }} to `${{ steps.bump-version.outputs.version }}` !"
Expand All @@ -128,7 +128,7 @@ jobs:
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_RELEASE_ENDPOINT }}
RELEASE_BRANCH: ${{ needs.create-release-branch.outputs.version }}
SLACK_WEBHOOK_ADMIN: '<!subteam^${{ secrets.SLACK_WEBHOOK_ADMIN }}>'
SLACK_WEBHOOK_ADMIN: "<!subteam^${{ secrets.SLACK_WEBHOOK_ADMIN }}>"
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -142,6 +142,7 @@ jobs:
with:
message: >
We have frozen release branch `${{ env.RELEASE_BRANCH }}` of `${{ inputs.library-name }}` 🚀✨🎉

PSA: For automated cherry picks, please assign the label `${{ env.RELEASE_BRANCH }}` to your PR _before_ merging to `main`. A bot will attempt a cherry pick into the release branch. If it fails due to a merge-conflict, you will need to take action. Our team ${{ env.SLACK_WEBHOOK_ADMIN }} will reach out to you.

webhook: ${{ env.SLACK_WEBHOOK }}