Skip to content

Commit

Permalink
Update cmd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mordamax committed Jul 23, 2024
1 parent 057fa9f commit 8b6cbb0
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/cmd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
body: `<details><summary>Command help:</summary>${{ steps.help.outputs.help }}</details>`
})
confirm:
acknowledge:
if: ${{ startsWith(github.event.comment.body, '/cmd') }}
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -91,17 +91,15 @@ jobs:
echo "job_url=${jobLink}"
echo "run_url=${runLink}"
echo "job_url=$job_url" >> $GITHUB_ENV
echo "run_url=$run_url" >> $GITHUB_ENV
echo "job_url=$job_url" >> $GITHUB_OUTPUT
echo "run_url=$run_url" >> $GITHUB_OUTPUT
- name: Clean previous comments
if: ${{ contains(github.event.comment.body, '--clean') }}
uses: actions/github-script@v7
with:
github-token: ${{ steps.commands_token.outputs.token }}
script: |
let workflowLink = ${{ env.job_url }}
github.rest.issues.listComments({
issue_number: context.issue.number,
owner: context.repo.owner,
Expand All @@ -126,7 +124,7 @@ jobs:
with:
github-token: ${{ steps.commands_token.outputs.token }}
script: |
let job_url = ${{ env.job_url }}
let job_url = ${{ steps.build-link.outputs.job_url }}
github.rest.issues.createComment({
issue_number: context.issue.number,
Expand Down Expand Up @@ -206,7 +204,7 @@ jobs:
with:
github-token: ${{ steps.commands_token.outputs.token }}
script: |
let runUrl = ${{ env.run_url }}
let runUrl = ${{ steps.build-link.outputs.run_url }}
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
Expand All @@ -220,7 +218,7 @@ jobs:
with:
github-token: ${{ steps.commands_token.outputs.token }}
script: |
let jobUrl = ${{ env.job_url }}
let jobUrl = ${{ steps.build-link.outputs.job_url }}
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
Expand Down

0 comments on commit 8b6cbb0

Please sign in to comment.