Skip to content

Commit

Permalink
Refactor with github.ref_name (#286)
Browse files Browse the repository at this point in the history
* Refactor with `github.ref_name`

* Update acceptance-test.yaml
  • Loading branch information
int128 authored Jan 4, 2023
1 parent 3c138fa commit a1313be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/acceptance-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ name: acceptance-test
on:
pull_request:
paths:
- .github/workflows/go.yaml
- .github/workflows/acceptance-test.yaml
- '**.go'
- go.*
- acceptance_test/**
push:
branches:
- master
paths:
- .github/workflows/go.yaml
- .github/workflows/acceptance-test.yaml
- '**.go'
- go.*
- acceptance_test/**
Expand All @@ -26,7 +26,7 @@ jobs:
with:
go-version: 1.19.4
cache: true
- run: go build -ldflags "-X main.version=${GITHUB_REF##*/}"
- run: go build -ldflags '-X main.version=${{ github.ref_name }}'
- run: make -C acceptance_test
env:
GITHUB_TOKEN: ${{ github.token }}
Expand Down

0 comments on commit a1313be

Please sign in to comment.