Skip to content

Commit

Permalink
chore(ci): use ref name without sub
Browse files Browse the repository at this point in the history
  • Loading branch information
Thuan Vo committed Jun 5, 2023
1 parent b0ab8a2 commit 02d95a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ on:
- cryostat-v[0-9]+.[0-9]+

env:
TARGET_BRANCH: ${{ github.base_ref || github.ref }}
TARGET_BRANCH: ${{ github.event.pull_request.base.ref || github.ref_name }}

jobs:
lint-chart:
Expand All @@ -46,7 +46,7 @@ jobs:
- name: Set up chart-testing
uses: helm/chart-testing-action@v2.4.0
- name: Lint chart
run: ct lint --target-branch ${TARGET_BRANCH##*/} --lint-conf lintconf.yaml --config ct.yaml --chart-yaml-schema chart_schema.yaml
run: ct lint --target-branch ${TARGET_BRANCH} --lint-conf lintconf.yaml --config ct.yaml --chart-yaml-schema chart_schema.yaml
test-chart:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 02d95a8

Please sign in to comment.