Skip to content

Commit 06116fe

Browse files
committed
Remove testing stuff, finalize create_release_pr.yml details
1 parent f724814 commit 06116fe

File tree

1 file changed

+17
-35
lines changed

1 file changed

+17
-35
lines changed
Lines changed: 17 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
name: Create CLI Release PR
22

33
on:
4-
# workflow_dispatch:
5-
# inputs:
6-
# versionName:
7-
# description: 'Name of version (ie 23.9.5)'
8-
# required: true
9-
push
4+
workflow_dispatch:
5+
inputs:
6+
versionName:
7+
description: 'Name of version (ie 23.9.5)'
8+
required: true
109

1110
jobs:
1211
create-release-pr:
@@ -16,37 +15,23 @@ jobs:
1615
- name: Checkout
1716
uses: actions/checkout@v4
1817

19-
# todo: add this back? or not?
20-
# - name: Import GPG key
21-
# id: import-gpg
22-
# uses: crazy-max/ghaction-import-gpg@v6
23-
# with:
24-
# gpg_private_key: ${{ secrets.RELEASER_GPG_PRIVATE_KEY }}
25-
# git_user_signingkey: true
26-
# git_commit_gpgsign: true
27-
# git_config_global: true
28-
29-
- name: Create release branch
30-
#run: git checkout -b release/${{ github.event.inputs.versionName }}
31-
run: git checkout -b test-sentry-release-bot
32-
33-
- name: Set bot's Git info
18+
- name: Set sentry-release-bot's Git info
3419
run: |
3520
git config --global user.email "180476844+sentry-release-bot[bot]@users.noreply.github.com"
3621
git config --global user.name "sentry-release-bot[bot]"
3722
23+
- name: Create release branch
24+
run: git checkout -b release/${{ github.event.inputs.versionName }}
25+
3826
- name: Update version and push
3927
id: make-commit
4028
run: |
4129
cd codecov-cli
42-
# sed -i 's/version\ =\ "[0-9]\+\.[0-9]\+\.[0-9]\+"/version\ =\ "${{ github.event.inputs.versionName }}"/g' pyproject.toml
43-
sed -i 's/version\ =\ "[0-9]\+\.[0-9]\+\.[0-9]\+"/version\ =\ "test"/g' pyproject.toml
30+
sed -i 's/version\ =\ "[0-9]\+\.[0-9]\+\.[0-9]\+"/version\ =\ "${{ github.event.inputs.versionName }}"/g' pyproject.toml
4431
git add pyproject.toml
45-
#git commit --message "Prepare release ${{ github.event.inputs.versionName }}"
46-
git commit --message "test"
32+
git commit --message "Prepare release ${{ github.event.inputs.versionName }}"
4733
echo "commit=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
48-
#git push origin release/${{ github.event.inputs.versionName }}
49-
git push origin test-sentry-release-bot
34+
git push origin release/${{ github.event.inputs.versionName }}
5035
5136
- name: Get auth token
5237
id: token
@@ -59,13 +44,10 @@ jobs:
5944
uses: thomaseizinger/create-pull-request@1.3.1
6045
with:
6146
github_token: ${{ steps.token.outputs.token }}
62-
# head: release/${{ github.event.inputs.versionName }}
63-
head: test-sentry-release-bot
47+
head: release/${{ github.event.inputs.versionName }}
6448
base: main
65-
# title: Release ${{ github.event.inputs.versionName }}
66-
title: Test pr
49+
title: Release ${{ github.event.inputs.versionName }}
6750
reviewers: ${{ github.event.issue.user.login }}
68-
# body: |
69-
# Release PR for ${{ github.event.inputs.versionName }}
70-
# I've updated the version name and committed: ${{ steps.make-commit.outputs.commit }}.
71-
body: test body
51+
body: |
52+
Release PR for ${{ github.event.inputs.versionName }}
53+
I've updated the version name and committed: ${{ steps.make-commit.outputs.commit }}.

0 commit comments

Comments
 (0)