File tree Expand file tree Collapse file tree 2 files changed +49
-1
lines changed Expand file tree Collapse file tree 2 files changed +49
-1
lines changed Original file line number Diff line number Diff line change 1+ on :
2+ workflow_dispatch :
3+ inputs :
4+ package :
5+ required : true
6+ type : string
7+ description : package name such as `sentry-arroyo`
8+ version :
9+ required : true
10+ type : string
11+ description : desired version such as `1.2.3`
12+
13+ # disable all permissions -- we use the PAT's permissions instead
14+ permissions : {}
15+
16+ jobs :
17+ bump-version :
18+ runs-on : ubuntu-latest
19+ steps :
20+ - uses : actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
21+ with :
22+ token : ${{ secrets.BUMP_SENTRY_TOKEN }}
23+ - run : |
24+ set -euxo pipefail
25+
26+ git checkout -b "bot/bump-version/$PACKAGE/$VERSION"
27+
28+ re="$(sed 's/[_-]/[_-]/g' <<< "$PACKAGE")"
29+ sed -i "s/^$re==.*/$PACKAGE==$VERSION/g" -- requirements*.txt
30+
31+ git \
32+ -c user.name=getsentry-bot \
33+ -c user.email='[email protected] ' \ 34+ commit \
35+ --all \
36+ --message "ref: bump $PACKAGE to $VERSION" \
37+ --message "Co-Authored-By: $SENDER <[email protected] >" 38+
39+ git push origin HEAD --quiet
40+
41+ gh pr create --fill
42+ env:
43+ GH_TOKEN: ${{ secrets.BUMP_SENTRY_TOKEN }}
44+ PACKAGE: ${{ inputs.package }}
45+ VERSION: ${{ inputs.version }}
46+ SENDER: ${{ github.event.sender.login }}
47+ SENDER_ID: ${{ github.event.sender.id }}
Original file line number Diff line number Diff line change @@ -63,10 +63,11 @@ repos:
6363 args : [ '--project', 'pyrightconfig-commithook.json' ]
6464
6565- repo : https://github.com/python-jsonschema/check-jsonschema
66- rev : 0.16 .0
66+ rev : 0.21 .0
6767 hooks :
6868 - id : check-github-actions
6969 - id : check-github-workflows
70+ args : [--verbose]
7071
7172- repo : https://github.com/pre-commit/pre-commit-hooks
7273 rev : v4.3.0
You can’t perform that action at this time.
0 commit comments