mirror of
https://github.com/bcanseco/github-contribution-graph-action.git
synced 2025-10-09 13:41:58 +03:00
fix: misc errors
This commit is contained in:
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -17,7 +17,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- uses: gaurav-nelson/github-action-markdown-link-check@master
|
||||
- uses: gaurav-nelson/github-action-markdown-link-check@v1
|
||||
dogfooding:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
# This version of Node.js or later is required for top-level await.
|
||||
FROM node:14.3.0
|
||||
FROM node:16.11.1
|
||||
|
||||
# When running as a GitHub Action, the WORKDIR is controlled by GitHub.
|
||||
# Furthermore, they recommend NOT setting it in the Dockerfile, which makes running locally difficult.
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
</a>
|
||||
</p>
|
||||
|
||||
> Maybe most of your coding happens on another version control host, like GitLab or Bitbucket. Maybe your company uses GitHub Enterprise but hasn't enabled [unified contributions](https://help.github.com/en/enterprise/2.20/admin/installation/enabling-unified-contributions-between-github-enterprise-server-and-githubcom). Maybe you're looking for a new software development job and are worried that recruiters will prejudge you by your scarce contribution graph.
|
||||
> Maybe most of your coding happens on another version control host, like GitLab or Bitbucket. Maybe your company uses GitHub Enterprise but hasn't enabled [unified contributions](https://docs.github.com/en/enterprise-server@latest/admin/configuration/configuring-github-connect/enabling-unified-contributions-for-your-enterprise). Maybe you're looking for a new software development job and are worried that recruiters will prejudge you by your scarce contribution graph.
|
||||
> Or maybe you have [other reasons](https://twitter.com/jacobmparis/status/1265740598277025792). Whatever the case may be, you've come to the right place.
|
||||
|
||||
## Quick start without leaving your browser ⚡
|
||||
|
||||
2
package-lock.json
generated
2
package-lock.json
generated
@@ -15,7 +15,7 @@
|
||||
"jest": "^27.5.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=14.3.0"
|
||||
"node": ">=16.11.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@ampproject/remapping": {
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"test": "node --experimental-vm-modules node_modules/jest/bin/jest"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=14.3.0"
|
||||
"node": ">=16.11.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"auto-parse": "^1.8.0",
|
||||
|
||||
@@ -5,11 +5,11 @@ import fromUnixTime from 'date-fns/fp/fromUnixTime';
|
||||
import subDays from 'date-fns/fp/subDays';
|
||||
import isWeekend from 'date-fns/fp/isWeekend';
|
||||
import fs from 'fs/promises';
|
||||
import git from 'simple-git/promise';
|
||||
import git from 'simple-git';
|
||||
import {getRandomInt} from './random';
|
||||
|
||||
const env = autoParse({
|
||||
GIT_BRANCH: process.env.GIT_BRANCH || process.env.GITHUB_REF.replace(/^refs\/heads\//, ''),
|
||||
GIT_BRANCH: process.env.GIT_BRANCH || process.env.GITHUB_REF?.replace(/^refs\/heads\//, ''),
|
||||
ORIGIN_TIMESTAMP: process.env.ORIGIN_TIMESTAMP || getUnixTime(new Date()),
|
||||
...dotenv.load({errorOnMissing: true, includeProcessEnv: true}),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user