Skip to content

Commit

Permalink
Changes workflow to handle lara-framework default branch name being d…
Browse files Browse the repository at this point in the history
…ifferent from this repo default
  • Loading branch information
joaobispo committed Jan 3, 2025
1 parent a75dd7a commit 4abe3d2
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,18 @@ jobs:
echo "Default branch: ${{ env.DEFAULT_BRANCH }}"
echo "Branch base_ref: ${{ github.base_ref }}"
- name: Checkout lara-framework
# Currently lara-framework default branch is 'master' and not 'main'
- name: Checkout lara-framework (main)
uses: actions/checkout@v4
if: env.BRANCH_NAME == 'main'
with:
repository: specs-feup/lara-framework
path: lara-framework
ref: master

- name: Checkout lara-framework (other branches)
uses: actions/checkout@v4
if: env.BRANCH_NAME != 'main'
with:
repository: specs-feup/lara-framework
path: lara-framework
Expand Down

0 comments on commit 4abe3d2

Please sign in to comment.