Skip to content

Commit

Permalink
Merge pull request #162 from cmu-delphi/ds/test2
Browse files Browse the repository at this point in the history
ci: test
  • Loading branch information
dshemetov authored Sep 1, 2023
2 parents 1ad0717 + e972996 commit ab3a64f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/debug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
issue_comment:
types: [created]

name: Test

jobs:
test:
runs-on: ubuntu-latest
env:
VAR: ${{ github.event.comment.author_association }}
steps:
- name: Echo
run: |
echo $VAR
4 changes: 2 additions & 2 deletions .github/workflows/pr-commands.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ name: Commands

jobs:
document:
if: ${{ github.event.issue.pull_request && startsWith(github.event.comment.body, '/document') }}
if: ${{ github.event.issue.pull_request && (contains(github.event.comment.author_association, 'MEMBER') || contains(github.event.comment.author_association, 'OWNER')) && startsWith(github.event.comment.body, '/document') }}
name: document
runs-on: ubuntu-latest
env:
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
repo-token: ${{ secrets.GITHUB_TOKEN }}

style:
if: ${{ (github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER') && startsWith(github.event.comment.body, '/style') }}
if: ${{ github.event.issue.pull_request && (contains(github.event.comment.author_association, 'MEMBER') || contains(github.event.comment.author_association, 'OWNER')) && startsWith(github.event.comment.body, '/document') }}
name: style
runs-on: ubuntu-latest
env:
Expand Down
2 changes: 1 addition & 1 deletion R/auth.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
get_auth_key <- function() {
key <- Sys.getenv("DELPHI_EPIDATA_KEY", unset = "")
if (key != "") {
return(key)
return(key)
}

key <- getOption("delphi.epidata.key", default = "")
Expand Down

0 comments on commit ab3a64f

Please sign in to comment.