Skip to content

Commit

Permalink
add initial version of action (#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
seabbs authored Jul 25, 2024
1 parent b91d467 commit 604951f
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/try-this-pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: "Try this PR!"

on:
pull_request_target:
types: [opened]

jobs:
write-comment:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/github-script@v5
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `
## Try this Pull Request!
Open Julia and type:
\`\`\`julia
import Pkg
Pkg.activate(temp=true)
Pkg.add(url="https://github.com/CDCgov/Rt-without-renewal", rev="${context.payload.pull_request.head.ref}", subdir="EpiAware")
using EpiAware}
\`\`\`
`
})

0 comments on commit 604951f

Please sign in to comment.