Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

fix(BUX-000): syndicate and bump-version changes #23

Merged
merged 2 commits into from
Aug 30, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 21 additions & 12 deletions .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,42 @@
name: bump-version

on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write
contents: write
pull-requests: write

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: release-please
id: release
uses: GoogleCloudPlatform/release-please-action@v3
with:
token: ${{ secrets.TOKEN }}
release-type: go

- name: merge-pr
- name: Get created PR number
id: pr-number
if: steps.release.outputs.pr
uses: actions/github-script@v6
with:
github-token: ${{ secrets.TOKEN }}
result-encoding: string
script: |
const pr = ${{ steps.release.outputs.pr }};
if (pr && pr.number) {
github.rest.pulls.merge({
pull_number: pr.number,
owner: context.repo.owner,
repo: context.repo.repo
});
}
return pr && pr.number
- name: Approve Release PR
if: steps.release.outputs.pr
run: gh pr review ${{ steps.pr-number.outputs.result }} --approve
env:
GH_TOKEN: ${{ github.token }}
- name: Merge Release PR
if: steps.release.outputs.pr
run: gh pr merge ${{ steps.pr-number.outputs.result }} --auto --rebase
env:
GH_TOKEN: ${{ secrets.TOKEN }}
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install Task
run: |
curl -sL https://taskfile.dev/install.sh | sh
sudo mv ./bin/task /usr/local/bin
- name: Setup Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.21
dorzepowski marked this conversation as resolved.
Show resolved Hide resolved
- name: Sync with GoDocs using Taskfile
run: task godocs
env:
GIT_DOMAIN: ${{ github.server_url }}
REPO: ${{ github.repository }}
VERSION_SHORT: ${{ github.ref }}
5 changes: 1 addition & 4 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,4 @@ tasks:
desc: Sync the latest tag with GoDocs
cmds:
- echo "syndicating to GoDocs..."
- test $(GIT_DOMAIN)
- test $(REPO)
- test $(VERSION_SHORT)
- curl https://proxy.golang.org/$(GIT_DOMAIN)/$(REPO)/@v/$(VERSION_SHORT).info
- curl "https://proxy.golang.org/github.com/$REPO/v/$VERSION_SHORT.info"
dorzepowski marked this conversation as resolved.
Show resolved Hide resolved
Loading