Skip to content

Commit

Permalink
Fixes git tag pulling order (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
foot authored Sep 23, 2021
1 parent f5c07d0 commit 5f32082
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ jobs:
echo "::set-output name=dir::$(yarn cache dir)"
echo "::set-output name=go-build::$(go env GOCACHE)"
echo "::set-output name=go-mod::$(go env GOMODCACHE)"
- name: Set environment variable
run: |
git fetch --tags --force
TAG=$(git describe --always --match "v*")
echo "TAG=$TAG" >> $GITHUB_ENV
- name: Install Go
uses: actions/setup-go@v2
with:
Expand All @@ -41,6 +36,11 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set environment variable
run: |
git fetch --tags --force
TAG=$(git describe --always --match "v*")
echo "TAG=$TAG" >> $GITHUB_ENV
- name: Go Build Cache
uses: actions/cache@v2
with:
Expand All @@ -57,11 +57,6 @@ jobs:
key: ${{ runner.os }}-${{ env.YARN_CACHE_NAME }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-${{ env.YARN_CACHE_NAME }}-
- name: Set environment variable
run: |
git fetch --tags --force
TAG=$(git describe --always --match "v*")
echo "TAG=$TAG" >> $GITHUB_ENV
- name: Build all the services
env:
GITHUB_BUILD_TOKEN: ${{ secrets.BUILD_BOT_PERSONAL_ACCESS_TOKEN }}
Expand Down

0 comments on commit 5f32082

Please sign in to comment.