@@ -103,37 +103,29 @@ jobs:
103
103
chmod a+x ~/auto
104
104
105
105
- name : Get PR labels
106
- id : auto -label
106
+ id : release -label
107
107
run : |
108
108
LABELS="$(~/auto label)"
109
109
echo $LABELS
110
110
echo "labels=$LABELS" >> $GITHUB_OUTPUT
111
111
env :
112
112
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
113
113
114
- - name : Get release label
115
- id : release-label
114
+ - name : Bump version
115
+ if : steps. release-label.outputs.label != 'internal'
116
116
run : |
117
- echo ${{ steps.auto-label.outputs.labels }}
118
- echo $AUTO_LABEL
119
- env :
120
- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
117
+ poetry version ${{ steps.release-label.outputs.labels }}
121
118
122
- # - name: Bump version
123
- # if: steps.release-label.outputs.label != 'internal'
124
- # run: |
125
- # poetry version ${{ steps.pr-labels.outputs.label }}
126
-
127
- # - name: Allow pushing version updates to the default branch
128
- # if: steps.detect-pr.outputs.pr_found == 'true'
129
- # id: get-admin-token
130
- # uses: peter-murray/workflow-application-token-action@v2
131
- # with:
132
- # application_id: ${{ secrets.PLEO_GH_APP_TOKEN_SIGNER_APP_ID }}
133
- # application_private_key: ${{ secrets.PLEO_GH_APP_TOKEN_SIGNER_PRIVATE_KEY }}
134
-
135
- # - name: Push changes (Git)
136
- # if: steps.detect-pr.outputs.pr_found == 'true'
137
- # uses: ad-m/github-push-action@master
138
- # with:
139
- # github_token: ${{ steps.get-admin-token.outputs.token }}
119
+ - name : Allow pushing version updates to the default branch
120
+ if : steps.release-label.outputs.labels != 'internal'
121
+ id : get-admin-token
122
+ uses : peter-murray/workflow-application-token-action@v2
123
+ with :
124
+ application_id : ${{ secrets.PLEO_GH_APP_TOKEN_SIGNER_APP_ID }}
125
+ application_private_key : ${{ secrets.PLEO_GH_APP_TOKEN_SIGNER_PRIVATE_KEY }}
126
+
127
+ - name : Push changes (Git)
128
+ if : steps.release-label.outputs.labels != 'internal'
129
+ uses : ad-m/github-push-action@master
130
+ with :
131
+ github_token : ${{ steps.get-admin-token.outputs.token }}
0 commit comments