Skip to content

Commit

Permalink
add fallback branch for rubocop to compare against when manually trig…
Browse files Browse the repository at this point in the history
…gering CI
  • Loading branch information
MattBudz committed Jun 26, 2024
1 parent 7a4e88c commit 7272e5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
IS_MERGE: ${{ github.base_ref == '' }}
PREV_SHA: ${{ github.event.before }}
TARGET_BRANCH: ${{ github.base_ref }}
FALLBACK_BRANCH: 'develop'
steps:
- name: Checkout code
uses: actions/checkout@v1
Expand All @@ -40,7 +41,7 @@ jobs:
with:
bundler-cache: true
- name: Lint changed files
run: bin/rubocop-ci ${{ env.TARGET_BRANCH || env.PREV_SHA }} ${{ env.IS_MERGE }}
run: bin/rubocop-ci ${{ env.TARGET_BRANCH || env.PREV_SHA || env.FALLBACK_BRANCH }} ${{ env.IS_MERGE }}
rspec:
name: RSpec
needs: [audits, rubocop]
Expand Down

0 comments on commit 7272e5b

Please sign in to comment.