Skip to content

Commit 2c4f35e

Browse files
author
Genevieve Nuebel
committed
Update workflows to add commit_sha and remove major
1 parent 578537d commit 2c4f35e

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/workflows/update.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ on:
1111
default: "patch"
1212
type: choice
1313
options:
14-
- major
1514
- minor
1615
- patch
1716

@@ -39,13 +38,13 @@ jobs:
3938
- name: Update libraries
4039
env:
4140
LABEL: ${{ github.event.pull_request.labels[0].name }}
42-
if: env.LABEL == 'major' || env.LABEL == 'minor' || env.LABEL == 'patch' && steps.changed-files-specific.outputs.any_changed == true
41+
if: env.LABEL == 'minor' || env.LABEL == 'patch' && steps.changed-files-specific.outputs.any_changed == true
4342
uses: peter-evans/repository-dispatch@v2
4443
with:
4544
token: ${{ steps.generate_token.outputs.token }}
4645
repository: ${{ matrix.repo }}
4746
event-type: generate_publish_release
48-
client-payload: '{"version":"${{ env.LABEL }}"}'
47+
client-payload: '{"version":"${{ env.LABEL }}","commit_sha":"${{ github.sha }}"}'
4948
- name: Slack notification
5049
uses: ravsamhq/notify-slack-action@v2
5150
if: always()
@@ -79,7 +78,7 @@ jobs:
7978
token: ${{ steps.generate_token.outputs.token }}
8079
repository: ${{ matrix.repo }}
8180
event-type: generate_publish_release
82-
client-payload: '{"version":"${{ github.event.inputs.version_level }}"}'
81+
client-payload: '{"version":"${{ github.event.inputs.version_level }}","commit_sha":"${{ github.sha }}"}'
8382
- name: Slack notification
8483
uses: ravsamhq/notify-slack-action@v2
8584
if: always()

.github/workflows/version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ jobs:
2424
with:
2525
mode: exactly
2626
count: 1
27-
labels: "major, minor, patch"
27+
labels: "minor, patch"
2828
add_comment: true
2929
message: "This PR is blocked until you add one of the following labels: {{ provided }}. Once added you can merge."

0 commit comments

Comments
 (0)