Skip to content

Commit

Permalink
Try to check out the repository before extracting the version.
Browse files Browse the repository at this point in the history
  • Loading branch information
adewes committed Jul 27, 2021
1 parent e4b37bd commit bce8f8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-and-push-docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
name: Push Docker image to GitHub Packages
runs-on: ubuntu-latest
steps:
- name: Extract version
run: echo "VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Check out the repo
uses: actions/checkout@v2
- name: Extract version
run: echo "VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Build and push eps
uses: docker/build-push-action@v1
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/make-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ jobs:
GOPATH: /tmp/go
GOARCH:
steps:
- name: Extract version
run: echo "VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: create Go path
run: |
mkdir -p /tmp/go
Expand All @@ -27,6 +25,8 @@ jobs:
go-version: ${{matrix.go-version}}
- name: Checkout repository
uses: actions/checkout@v2
- name: Extract version
run: echo "VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: run tests
if: ${{ matrix.arch == 'linux-amd64' }} # we only run the tests on Linux
run: |
Expand Down

0 comments on commit bce8f8c

Please sign in to comment.