Skip to content

Commit

Permalink
Merge pull request #10 from brunovicenteb/feature_test
Browse files Browse the repository at this point in the history
Update Build-Test-Coverage.yml
  • Loading branch information
brunovicenteb authored Jul 21, 2023
2 parents 89361cb + 01aeb53 commit 1f89474
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/Build-Test-Coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ jobs:
strategy:
matrix:
dotnet-version: ['7.0.x']



steps:
- uses: actions/checkout@v3
Expand All @@ -27,11 +25,11 @@ jobs:
echo "github.ref is ${{ github.ref }}"
echo "github.ref_name is ${{ github.ref_name }}"
echo "github.event.pull_request.merged is ${{ github.event.pull_request.merged }}"
echo "github.event_name is ${{ github.event_name }}"
- name: test
env:
LATEST_TAG: ${{ github.ref == 'refs/heads/main' && 'latest' || format('latest-{0}', github.ref_name) }}
if: ${{ success() && (github.ref == 'refs/heads/main' || github.ref_name == 'refs/heads/develop' || startsWith(github.ref_name, 'hotfix') || startsWith(github.ref_name, 'release')) }}
if: ${{ success() && github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || github.ref_name == 'refs/heads/develop' || startsWith(github.ref_name, 'hotfix') || startsWith(github.ref_name, 'release')) }}
run: |
echo "today is ${{env.LATEST_TAG}}"

0 comments on commit 1f89474

Please sign in to comment.