chore(deps): update dependency speakeasy-api/speakeasy to v1.455.7 #50
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bump Version | |
on: | |
pull_request: | |
branches: | |
- '*' | |
types: | |
- labeled | |
- unlabeled | |
jobs: | |
check-semver-label: | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
pull-requests: write | |
steps: | |
- uses: mheap/github-action-required-labels@v5 | |
with: | |
mode: exactly | |
count: 1 | |
labels: "patch, minor, major" | |
bump-version: | |
needs: | |
- check-semver-label | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
contents: write | |
steps: | |
- name: Install Speakeasy | |
uses: mheap/setup-go-cli@v1 | |
with: | |
owner: speakeasy-api | |
repo: speakeasy | |
cli_name: speakeasy | |
package_type: zip | |
version: 1.455.7 # renovate: datasource=github-releases depName=speakeasy-api/speakeasy | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
token: ${{ secrets.PAT }} | |
- name: Reset .speakeasy/gen.yaml to the version on main | |
run: | | |
git fetch origin main | |
git checkout origin/main .speakeasy/gen.yaml .speakeasy/gen.lock | |
- name: Set bump (patch) | |
run: | | |
BUMP_TYPE=$(echo '${{ toJson(github.event.pull_request.labels.*.name) }}' | jq -r '.[]' | grep -E 'patch|minor|major') | |
speakeasy bump $BUMP_TYPE | |
- name: Commit SDK changes to the PR | |
uses: EndBug/add-and-commit@v9 | |
with: | |
add: . | |
default_author: github_actor | |
message: Bump .speakeasy/gen.yaml based on label |