Skip to content

Commit

Permalink
build: prs are hard 😔 (electron#1087)
Browse files Browse the repository at this point in the history
  • Loading branch information
vhashimotoo authored Jun 4, 2019
1 parent cab8a3d commit f19795a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 21 deletions.
3 changes: 1 addition & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
GITHUB_AUTH_TOKEN=

GH_TOKEN=
18 changes: 1 addition & 17 deletions .github/main.workflow
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
workflow "Update and release" {
on = "schedule(0 */3 * * *)"
on = "schedule(0 */12 * * *)"
resolves = ["Update data and release"]
}

Expand All @@ -11,19 +11,3 @@ action "Update data and release" {
"NPM_AUTH_TOKEN",
]
}

workflow "Test" {
on = "push"
resolves = ["Run tests"]
}

action "Install dependencies" {
uses = "actions/npm@master"
args = "ci"
}

action "Run tests" {
uses = "actions/npm@master"
needs = ["Install dependencies"]
args = "test"
}
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
env:
CXX=g++-4.8
language: node_js
node_js:
- "8"
6 changes: 4 additions & 2 deletions lib/github.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
require('dotenv-safe').load()
if (!process.env.GH_TOKEN) {
require('dotenv-safe').load()
}

const Github = require('@octokit/rest')
const github = new Github({
Expand All @@ -7,7 +9,7 @@ const github = new Github({

github.authenticate({
type: 'token',
token: process.env.GITHUB_AUTH_TOKEN
token: process.env.GH_TOKEN
})

module.exports = github

0 comments on commit f19795a

Please sign in to comment.