Skip to content

Commit

Permalink
edited workflow to load image that was built
Browse files Browse the repository at this point in the history
  • Loading branch information
aali309 committed Oct 11, 2023
1 parent 34c5021 commit 6a794b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/ci-build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ jobs:
step: restore
- run: git submodule init
- run: git submodule update
if: ${{ !inputs.run-tests-only }}
- run: mvn -B -U -Dbuild.arch=${{ inputs.build-arch }} clean package
env:
GITHUB_TOKEN_REF: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -112,9 +111,6 @@ jobs:
with:
java-version: '17'
distribution: 'temurin'
- uses: actions/download-artifact@v3
with:
name: cryostat-${{ inputs.build-arch }}
- name: Load cryostat image
run: podman load -i cryostat-${{ inputs.build-arch }}.tar
- uses: skjolber/maven-cache-github-action@v1
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/pr-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ jobs:
});
check-test-results:
if: ${{ needs.build-and-test.result == 'success' || needs.retest-integration.result == 'success' }}
if: ${{ success(needs.build-and-test) || success(needs.retest-integration) }}
runs-on: ubuntu-latest
needs: [build-and-test, retest-integration]
steps:
Expand All @@ -139,17 +139,16 @@ jobs:
continue-on-error: true

leave-test-status-comment:
if: ${{ needs.check-test-results.result == 'success' }}
runs-on: ubuntu-latest
needs: [check-test-results]
steps:
- name: Leave Test Status Comment
uses: actions/github-script@v6
with:
script: |
const testStatus = "${{ needs.check-test-results.test-status }}";
const currentTime = new Date().toLocaleString('en-US', { timeZone: 'America/Toronto' });
const commentBody = `Tests status: ${testStatus} at ${currentTime}.`;
const testStatus = "${{ needs.check-test-results.outputs.test-status }}";
const commentBody = `Tests status: ${test-status } ${currentTime}.`;
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
Expand Down

0 comments on commit 6a794b6

Please sign in to comment.