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 908b3c3
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/try.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Try Build
on:
issue_comment:
types: [created, edited, deleted]
push:
branches:
- fix_try

permissions:
contents: read
Expand All @@ -11,12 +14,22 @@ permissions:

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/checkout@v2.3.4
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 908b3c3

Please sign in to comment.