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 invalid if condition in Github Actions #10957

Merged
merged 1 commit into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
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
12 changes: 6 additions & 6 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ jobs:
- name: 'Test: list ${{ matrix.app }}'
if: |
steps.tests-requirement-check.outputs.execute_tests == 'true' &&
${{ matrix.java-build-tool }} == 'maven'
matrix.java-build-tool == 'maven'
id: cache_maven_md5sum
working-directory: /tmp/jhlite/${{ matrix.app }}/
run: |
Expand All @@ -382,7 +382,7 @@ jobs:
- name: 'Init: cache local Maven repository'
if: |
steps.tests-requirement-check.outputs.execute_tests == 'true' &&
${{ matrix.java-build-tool }} == 'maven'
matrix.java-build-tool == 'maven'
uses: actions/cache@v4
with:
path: ~/.m2/repository
Expand All @@ -392,7 +392,7 @@ jobs:
- name: 'Test: list ${{ matrix.app }}'
if: |
steps.tests-requirement-check.outputs.execute_tests == 'true' &&
${{ matrix.java-build-tool }} == 'gradle'
matrix.java-build-tool == 'gradle'
id: cache_gradle_md5sum
working-directory: /tmp/jhlite/${{ matrix.app }}/
run: |
Expand All @@ -408,7 +408,7 @@ jobs:
- name: 'Init: cache local Gradle repository'
if: |
steps.tests-requirement-check.outputs.execute_tests == 'true' &&
${{ matrix.java-build-tool }} == 'gradle'
matrix.java-build-tool == 'gradle'
uses: actions/cache@v4
with:
path: |
Expand Down Expand Up @@ -520,13 +520,13 @@ jobs:
pull-requests: write
contents: write
runs-on: ubuntu-latest
if: ${{ github.repository == 'jhipster/jhipster-lite' && github.ref != 'refs/heads/main' && github.event.pull_request.user.login == 'dependabot[bot]' }}
if: github.repository == 'jhipster/jhipster-lite' && github.ref != 'refs/heads/main' && github.event.pull_request.user.login == 'dependabot[bot]'
steps:
- name: Dependabot metadata
id: dependabot-metadata
uses: dependabot/[email protected]
- name: Enable auto-merge for Dependabot PRs
if: ${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' }}
if: steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major'
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-jvm-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
images: ${{ env.DOCKER_IMAGE_NAME }}

- name: Login to Docker Registry
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
if: startsWith(github.ref, 'refs/tags/v')
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
uses: docker/[email protected]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-native-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
run: ./start_docker_container.sh ${{ env.DOCKER_IMAGE_NAME }}

- name: Login to Docker Registry
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
if: startsWith(github.ref, 'refs/tags/v')
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
uses: docker/[email protected]
Expand All @@ -60,7 +60,7 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Tag the native (GraalVM) Docker image and push it
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
if: startsWith(github.ref, 'refs/tags/v')
run: |
docker tag ${{ env.DOCKER_IMAGE_NAME }} ${{ env.DOCKER_IMAGE_NAME }}:latest
docker tag ${{ env.DOCKER_IMAGE_NAME }} ${{ env.DOCKER_IMAGE_NAME }}:${{ github.ref_name }}
Expand Down