Skip to content

Commit

Permalink
fake
Browse files Browse the repository at this point in the history
  • Loading branch information
sprutton1 committed Dec 9, 2024
1 parent ac2d13f commit c4701d5
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/try.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,33 @@ name: Try Build
on:
issue_comment:
types: [created, edited, deleted]
push:
branches:
- fix_try

permissions:
contents: read
issues: write
pull-requests: read
pull-requests: write

jobs:
try:
if: ${{ github.event.issue.pull_request && startsWith(github.event.comment.body, '/try') }}
# if: ${{ github.event.issue.pull_request && startsWith(github.event.comment.body, '/try') }}
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- name: Get Pull Request Number
id: pr
run: echo "pull_request_number=$(gh pr view --json number -q .number || echo "")" >> $GITHUB_OUTPUT
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ github.event.pull_request.number }}
# issue-number: ${{ github.event.pull_request.number }}
issue-number: ${{ steps.pr.outputs.pull_request_number }}
body: |
'Okay, starting a try! I\'ll comment again once the build starts...'
Expand All @@ -35,6 +48,7 @@ jobs:

- uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ github.event.pull_request.number }}
# issue-number: ${{ github.event.pull_request.number }}
issue-number: ${{ steps.pr.outputs.pull_request_number }}
body: |
`πŸš€ [Try running here](${{ steps.run-build.outputs.url }}! πŸš€`
πŸš€ [Try running here](${{ steps.run-build.outputs.url }})! πŸš€

0 comments on commit c4701d5

Please sign in to comment.