Skip to content

Commit

Permalink
Fetch everything on initial checkouts (#19)
Browse files Browse the repository at this point in the history
This saves us a step so that the `git unshallow` is no longer necessary.
  • Loading branch information
djbender authored Jun 25, 2021
1 parent be16ee6 commit 89be92b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 19 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
# general setup
- name: Checkout
uses: actions/checkout@v2
with:
depth: 0 # fetch everything for gorelease
- name: Checkout Bridge Actions
uses: actions/checkout@v2
with:
Expand All @@ -36,8 +38,6 @@ jobs:
.
# build and test golang
- name: Unshallow
run: git fetch --prune --unshallow
- name: GoReleaser Build
uses: goreleaser/goreleaser-action@v2
with:
Expand Down
33 changes: 16 additions & 17 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,19 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Unshallow required for goreleaser's changelog behavior
- name: Unshallow
run: git fetch --prune --unshallow
# Go get'em!
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
# Release the thing!
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release
env:
GITHUB_TOKEN: ${{ secrets.INSTRUCTURE_BRIDGE_GITHUB_BOT_REPO_RW }}
- uses: actions/checkout@v2
with:
depth: 0 # fetch everything for gorelease
# Go get'em!
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
# Release the thing!
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release
env:
GITHUB_TOKEN: ${{ secrets.INSTRUCTURE_BRIDGE_GITHUB_BOT_REPO_RW }}

0 comments on commit 89be92b

Please sign in to comment.