Skip to content

Commit 0ab3876

Browse files
committed
Test the bot user auth flow
1 parent 7a93157 commit 0ab3876

1 file changed

Lines changed: 20 additions & 13 deletions

File tree

.github/workflows/create_release_pr.yml

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
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
4+
# workflow_dispatch:
5+
# inputs:
6+
# versionName:
7+
# description: 'Name of version (ie 23.9.5)'
8+
# required: true
9+
push
910

1011
jobs:
1112
create-release-pr:
@@ -26,16 +27,19 @@ jobs:
2627
# git_config_global: true
2728

2829
- name: Create release branch
29-
run: git checkout -b release/${{ github.event.inputs.versionName }}
30+
#run: git checkout -b release/${{ github.event.inputs.versionName }}
31+
run: git checkout -b test-sentry-release-bot
3032

3133
- name: Update version and push
3234
id: make-commit
3335
run: |
3436
sed -i 's/version\ =\ "[0-9]\+\.[0-9]\+\.[0-9]\+"/version\ =\ "${{ github.event.inputs.versionName }}"/g' pyproject.toml
3537
git add pyproject.toml
36-
git commit -S --message "Prepare release ${{ github.event.inputs.versionName }}"
38+
#git commit --message "Prepare release ${{ github.event.inputs.versionName }}"
39+
git commit --message "test"
3740
echo "commit=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
38-
git push origin release/${{ github.event.inputs.versionName }}
41+
#git push origin release/${{ github.event.inputs.versionName }}
42+
git push origin test-sentry-release-bot
3943
4044
- name: Get auth token
4145
id: token
@@ -48,10 +52,13 @@ jobs:
4852
uses: thomaseizinger/create-pull-request@1.3.1
4953
with:
5054
github_token: ${{ steps.token.outputs.token }}
51-
head: release/${{ github.event.inputs.versionName }}
55+
# head: release/${{ github.event.inputs.versionName }}
56+
head: test-sentry-release-bot
5257
base: main
53-
title: Release ${{ github.event.inputs.versionName }}
58+
# title: Release ${{ github.event.inputs.versionName }}
59+
title: Test pr
5460
reviewers: ${{ github.event.issue.user.login }}
55-
body: |
56-
Release PR for ${{ github.event.inputs.versionName }}
57-
I've updated the version name and committed: ${{ steps.make-commit.outputs.commit }}.
61+
# body: |
62+
# Release PR for ${{ github.event.inputs.versionName }}
63+
# I've updated the version name and committed: ${{ steps.make-commit.outputs.commit }}.
64+
body: test body

0 commit comments

Comments
 (0)