Skip to content

Commit

Permalink
use enterprise only on upstream master
Browse files Browse the repository at this point in the history
  • Loading branch information
mfkl committed Dec 8, 2022
1 parent 06079a5 commit 724b7f2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,18 @@ jobs:
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Setup Consul Enterprise URL
if: ${{ !github.event.repository.fork && github.ref == 'refs/heads/master' }}
run: echo "CONSUL_URL=https://releases.hashicorp.com/consul/${{ matrix.consul }}+ent/consul_${{ matrix.consul }}+ent_${SYSTEM}_amd64.zip" >> $GITHUB_ENV
- name: Setup Consul URL
if: ${{ github.event.repository.fork || github.ref != 'refs/heads/master' }}
run: echo "CONSUL_URL=https://releases.hashicorp.com/consul/${{ matrix.consul }}/consul_${{ matrix.consul }}_${SYSTEM}_amd64.zip" >> $GITHUB_ENV
- name: Download Consul
shell: bash
run: |
cd Consul.Test
SYSTEM=$(uname | sed 's/MINGW.*/windows/' | tr A-Z a-z)
curl -sSL https://releases.hashicorp.com/consul/${{ matrix.consul }}+ent/consul_${{ matrix.consul }}+ent_${SYSTEM}_amd64.zip -o consul.zip
curl -sSL ${{ env.CONSUL_URL }} -o consul.zip
unzip consul.zip
rm consul.zip
- name: Build
Expand Down

0 comments on commit 724b7f2

Please sign in to comment.