Skip to content
This repository was archived by the owner on Oct 17, 2023. It is now read-only.

Commit 282729b

Browse files
Fix labels (#8)
* Fix labels * Fix labels * Fix labels * Fix labels
1 parent 82b394b commit 282729b

File tree

1 file changed

+17
-25
lines changed

1 file changed

+17
-25
lines changed

.github/workflows/release.yaml

Lines changed: 17 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -103,37 +103,29 @@ jobs:
103103
chmod a+x ~/auto
104104
105105
- name: Get PR labels
106-
id: auto-label
106+
id: release-label
107107
run: |
108108
LABELS="$(~/auto label)"
109109
echo $LABELS
110110
echo "labels=$LABELS" >> $GITHUB_OUTPUT
111111
env:
112112
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
113113

114-
- name: Get release label
115-
id: release-label
114+
- name: Bump version
115+
if: steps.release-label.outputs.label != 'internal'
116116
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 }}
121118
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

Comments
 (0)