Skip to content

Merge pull request #170 from gonzolino/dependabot/go_modules/github.c… #145

Merge pull request #170 from gonzolino/dependabot/go_modules/github.c…

Merge pull request #170 from gonzolino/dependabot/go_modules/github.c… #145

Workflow file for this run

name: Release
on:
push:
branches:
- main
jobs:
release-please:
name: Release Please
outputs:
release_created: ${{ steps.release-please.outputs.release_created }}
runs-on: ubuntu-latest
steps:
- id: release-please
uses: google-github-actions/release-please-action@v4.1.1
with:
token: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
release-type: go
package-name: gotado
label:
if: ${{ needs.release-please.outputs.release_created }}
name: Label PR
needs: release-please
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- name: Get PR number
id: pr
run: |
echo "pr_number=$(gh pr list --state merged --label 'autorelease: tagged' --json number --jq '.[0].number')" >> $GITHUB_OUTPUT
- run: "gh pr edit ${{ steps.pr.outputs.pr_number }} --remove-label 'autorelease: tagged'"
- run: "gh pr edit ${{ steps.pr.outputs.pr_number }} --add-label 'autorelease: published'"