Skip to content

Commit

Permalink
ci: 💚 change base path
Browse files Browse the repository at this point in the history
  • Loading branch information
Xminent committed Dec 11, 2023
1 parent 729e9ac commit 56f7187
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ on:
- "**CMakeLists.txt"

env:
BRANCH_NAME: ${{ github.ref == 'refs/heads/dev' && 'dev' || 'main' }}
PRERELEASE: ${{ github.ref == 'refs/heads/dev' && 'true' || 'false' }}
TAG_SUFFIX: ${{ github.ref == 'refs/heads/dev' && '-dev' || '' }}

Expand All @@ -39,7 +40,7 @@ jobs:
- uses: dorny/paths-filter@v2
id: filter
with:
base: ${{ github.event.pull_request.base.sha || github.sha }}
base: ${{ env.BRANCH_NAME }}
filters: |
src:
- '**/*.cpp'
Expand Down Expand Up @@ -152,7 +153,7 @@ jobs:
uses: ietf-tools/semver-action@v1
with:
token: ${{ github.token }}
branch: ${{ github.ref == 'refs/heads/dev' && 'dev' || 'main' }}
branch: ${{ env.BRANCH_NAME }}
fromTag: ${{ steps.latest-tag.outputs.tag }}

- name: Create Draft Release
Expand Down

0 comments on commit 56f7187

Please sign in to comment.