Skip to content

Commit

Permalink
try a different quote character, only run script for PR
Browse files Browse the repository at this point in the history
  • Loading branch information
TimHess committed Feb 24, 2025
1 parent f7c4b3c commit 8e024d5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build_springboot_admin_server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,15 @@ jobs:
run: docker push --all-tags ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- uses: actions/github-script@v7
if: ${{ github.event_name == 'pull_request' }}
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `Run the Spring Boot Admin server image built for this PR with the command below:
body: "Run the Spring Boot Admin server image built for this PR with the command below:
```bash
docker run --rm -d --pull=always -p 9099:9099 --name spring-boot-admin-pr steeltoe.azurecr.io/spring-boot-admin:pr-${context.issue.number}
````
```"
})

0 comments on commit 8e024d5

Please sign in to comment.