Skip to content

Commit

Permalink
Improve tests [DI-337]
Browse files Browse the repository at this point in the history
  • Loading branch information
JackPGreen committed Nov 20, 2024
1 parent 361ae75 commit 2cb7287
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/publish-mc-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,15 @@ jobs:
deb:
runs-on: ubuntu-latest
container:
image: debian:stable
if: ${{ needs.prepare.outputs.package_types == 'all' || needs.prepare.outputs.package_types == 'deb' }}
env:
MC_VERSION: ${{ needs.prepare.outputs.mc_version }}
PACKAGE_VERSION: ${{ needs.prepare.outputs.package_version }}
defaults:
run:
shell: bash
working-directory: ./management-center-packaging
needs: [prepare]
steps:
Expand All @@ -106,13 +109,6 @@ jobs:
with:
path: 'management-center-packaging'

- name: Setup JDK
uses: actions/setup-java@v4
with:
java-version: ${{ env.JAVA_VERSION }}
architecture: ${{ env.JAVA_ARCH }}
distribution: ${{ env.JAVA_DISTRIBUTION }}

- name: Download the distribution tar.gz file
run: |
if [[ "${MC_VERSION}" != *SNAPSHOT* ]]; then
Expand Down Expand Up @@ -153,7 +149,7 @@ jobs:
sudo apt remove hazelcast-management-center
- name: Remove deb package from test repo
if: github.event_name == 'pull_request'
if: ${{ github.event_name == 'pull_request' && (success() || failure()) }}
run: |
source ./common.sh
curl -H "Authorization: Bearer ${{ secrets.JFROG_TOKEN }}" \
Expand Down Expand Up @@ -235,7 +231,7 @@ jobs:
echo "BREW_GIT_REPO_NAME=${BREW_GIT_REPO_NAME}" >> $GITHUB_ENV
- name: Remove rpm package from test repo
if: github.event_name == 'pull_request'
if: ${{ github.event_name == 'pull_request' && (success() || failure()) }}
run: |
source ./common.sh
curl -H "Authorization: Bearer ${{ secrets.JFROG_TOKEN }}" \
Expand Down

0 comments on commit 2cb7287

Please sign in to comment.