Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix maven workflow when building on main #1090

Merged
merged 1 commit into from
Jan 8, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,11 @@ jobs:
git config user.name ${{ github.actor }}
git config user.email "<>"





- name: Fetch base branch
run: git fetch origin ${{ github.base_ref }}:${{ github.base_ref }}

- name: Fetch head branch (unless PR was merged)
- name: Fetch branches (unless PR was merged)
if: ${{ env.MAKE_SNAPSHOT_RELEASE == 'false' }}
run: |
# as we aren't building main, let's fetch it
git fetch origin ${{ github.base_ref }}:${{ github.base_ref }}
if [ "${{ github.event.pull_request.head.repo.full_name }}" != "${{ github.repository }}" ]; then
# Fetch from contributor’s fork
git remote add fork ${{ github.event.pull_request.head.repo.clone_url }}
Expand All @@ -76,7 +71,9 @@ jobs:
# in the changelog (which happens), we fail fast
# Do this even if we will not make the snapshot release, so the changelog is checked as part of a normal
# ci run.

- name: Check Changelog formatting
id: get-changelog
uses: superfaceai/release-changelog-action@v1
with:
path-to-changelog: CHANGELOG.md
Expand Down
Loading