Skip to content

Commit

Permalink
remove PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mwangggg committed Jul 5, 2024
1 parent 6ac029b commit 02fecbe
Showing 1 changed file with 2 additions and 38 deletions.
40 changes: 2 additions & 38 deletions .github/workflows/container-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,41 +108,5 @@ jobs:
registry: ${{ env.CI_REGISTRY }}
username: ${{ env.CI_USER }}
password: ${{ secrets.REPOSITORY_TOKEN }}
- name: store quarkus-agent image as output
id: quarkus-agent-image
run: echo "image=${{ steps.push-to-quay.outputs.registry-path }}" >> $GITHUB_OUTPUT

comment-image:
runs-on: ubuntu-latest
needs: [build-quarkus-test-app]
env:
image: ${{ needs.build-quarkus-test-app.outputs.quay-image }}
permissions:
contents: read
pull-requests: write
steps:
- name: Create markdown table
id: md-table
uses: petems/[email protected]
with:
csvinput: |
ARCH, IMAGE
amd64, ${{ env.image }}
- uses: actions/github-script@v7
id: get_pr_data
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
return (
await github.rest.repos.listPullRequestsAssociatedWithCommit({
commit_sha: "${{ github.sha }}",
owner: "mwangggg",
repo: "cryostat-agent",
})
).data[0];
result-encoding: string
- run: echo ${{ steps.get_pr_data.output.result }}
- uses: thollander/actions-comment-pull-request@v2
with:
message: |-
${{ steps.md-table.outputs.markdown-table }}
- name: Print image URL
run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}"

0 comments on commit 02fecbe

Please sign in to comment.