Skip to content

Commit

Permalink
log less
Browse files Browse the repository at this point in the history
  • Loading branch information
redallen committed Jan 5, 2021
1 parent 19b5414 commit d74eefe
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions .github/upload-preview.js
Original file line number Diff line number Diff line change
@@ -7,15 +7,13 @@ const publishFn = surge().publish();
// From github actions
const ghrepo = process.env.GITHUB_REPOSITORY || '';
const ghref = process.env.GITHUB_REF || '';
console.log('ghrepo', ghrepo, 'ghref', ghref);
console.dir(process.env);

// From CircleCI
const owner = process.env.CIRCLE_PROJECT_USERNAME || ghrepo.split('/')[0]; // patternfly
const repo = process.env.CIRCLE_PROJECT_REPONAME || ghrepo.split('/')[1];
const prnum = process.env.CIRCLE_PR_NUMBER || (ghref.match(/pull\/(\d+)/) || [])[1];
// Can contain special characters but surge replaces them
const branch = process.env.CIRCLE_BRANCH || ghref.replace('refs/heads/', '');
console.log('prnum', prnum, 'branch', branch);

const uploadFolder = process.argv[2];
const uploadName = process.argv[3] || uploadFolder;
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ jobs:
node-version: '12'
- uses: actions/cache@v2
id: yarn-cache
name: Load node_modules from cache
name: Load v3 and v4 npm deps from cache
with:
path: '**/node_modules'
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
@@ -58,7 +58,7 @@ jobs:
# deploy
- run: mv build/v4 build/patternfly-org
name: Undo prep upload v3 docs
- run: .github/release.sh
# - run: .github/release.sh
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:

0 comments on commit d74eefe

Please sign in to comment.