Skip to content

Commit c00b7db

Browse files
authored
Merge pull request #9 from ppc64le-cloud/fix_action
Fix go action for git describe
2 parents bbc75cf + 50385b9 commit c00b7db

File tree

2 files changed

+6
-59
lines changed

2 files changed

+6
-59
lines changed

.github/workflows/go.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
tags:
66
- '*'
7+
branches: [ master ]
8+
pull_request:
9+
branches: [ master ]
710

811
jobs:
912

@@ -20,6 +23,8 @@ jobs:
2023

2124
- name: Check out code into the Go module directory
2225
uses: actions/checkout@v2
26+
with:
27+
fetch-depth: 0
2328

2429
- name: Get dependencies
2530
run: |
@@ -33,7 +38,7 @@ jobs:
3338
run: |
3439
mkdir -p bin
3540
# workaround for https://github.com/actions/checkout/issues/290
36-
git fetch --tags --force
41+
git fetch --tags --force --prune
3742
VERSION=$(git describe --tags --dirty)
3843
STATIC_FLAG='-w -extldflags "-static"'
3944
for platform in darwin/amd64 linux/amd64 linux/ppc64le

.github/workflows/go_pr.yml

Lines changed: 0 additions & 58 deletions
This file was deleted.

0 commit comments

Comments
 (0)