Prepare release v3.5 (#168)

This commit is contained in:
Simon Lecoq
2021-03-14 15:50:08 +01:00
committed by GitHub
parent 2a83a802c7
commit 06d2148f42
8 changed files with 9 additions and 14 deletions

View File

@@ -26,7 +26,6 @@ To support private repositories, add full `repo` scope to your personal token.
with: with:
# ... other options # ... other options
token: ${{ secrets.METRICS_TOKEN }} # A personal token from an user account with read:org scope token: ${{ secrets.METRICS_TOKEN }} # A personal token from an user account with read:org scope
committer_token: ${{ secrets.GITHUB_TOKEN }} # GitHub auto-generated token
user: organization-name # Organization name user: organization-name # Organization name
``` ```

View File

@@ -60,8 +60,8 @@ on:
# Schedule updates (each hour) # Schedule updates (each hour)
schedule: [{cron: "0 * * * *"}] schedule: [{cron: "0 * * * *"}]
# Lines below let you run workflow manually and on each commit (optional) # Lines below let you run workflow manually and on each commit (optional)
push: {branches: ["master", "main"]}
workflow_dispatch: workflow_dispatch:
push: {branches: ["master", "main"]}
jobs: jobs:
github-metrics: github-metrics:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -71,8 +71,6 @@ jobs:
with: with:
# Your GitHub token # Your GitHub token
token: ${{ secrets.METRICS_TOKEN }} token: ${{ secrets.METRICS_TOKEN }}
# GITHUB_TOKEN is a special auto-generated token restricted to current repository, which is used to push files in it
committer_token: ${{ secrets.GITHUB_TOKEN }}
``` ```
See all supported options in [action.yml](action.yml). See all supported options in [action.yml](action.yml).

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "metrics", "name": "metrics",
"version": "3.5.0-beta", "version": "3.5.0",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "metrics", "name": "metrics",
"version": "3.5.0-beta", "version": "3.5.0",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@actions/core": "^1.2.6", "@actions/core": "^1.2.6",

View File

@@ -1,6 +1,6 @@
{ {
"name": "metrics", "name": "metrics",
"version": "3.5.0-beta", "version": "3.5.0",
"description": "An image generator with 20+ metrics about your GitHub account such as activity, community, repositories, coding habits, website performances, music played, starred topics, etc. that you can put on your profile or elsewhere !", "description": "An image generator with 20+ metrics about your GitHub account such as activity, community, repositories, coding habits, website performances, music played, starred topics, etc. that you can put on your profile or elsewhere !",
"main": "index.mjs", "main": "index.mjs",
"scripts": { "scripts": {

View File

@@ -144,8 +144,8 @@
` # Schedule updates (each hour)`, ` # Schedule updates (each hour)`,
` schedule: [{cron: "0 * * * *"}]`, ` schedule: [{cron: "0 * * * *"}]`,
` # Lines below let you run workflow manually and on each commit`, ` # Lines below let you run workflow manually and on each commit`,
` push: {branches: ["master", "main"]}`,
` workflow_dispatch:`, ` workflow_dispatch:`,
` push: {branches: ["master", "main"]}`,
`jobs:`, `jobs:`,
` github-metrics:`, ` github-metrics:`,
` runs-on: ubuntu-latest`, ` runs-on: ubuntu-latest`,
@@ -154,8 +154,6 @@
` with:`, ` with:`,
` # Your GitHub token`, ` # Your GitHub token`,
` token: ${"$"}{{ secrets.METRICS_TOKEN }}`, ` token: ${"$"}{{ secrets.METRICS_TOKEN }}`,
` # GITHUB_TOKEN is a special auto-generated token restricted to current repository, which is used to push files in it`,
` committer_token: ${"$"}{{ secrets.GITHUB_TOKEN }}`,
``, ``,
` # Options`, ` # Options`,
` user: ${this.user }`, ` user: ${this.user }`,

View File

@@ -29,7 +29,7 @@ Dependencies will be analyzed with [github/licensed](https://github.com/github/l
# ... other options # ... other options
template: repository template: repository
user: repository-owner user: repository-owner
query: '{"repo":"repository-name"}' repo: repository-name
plugin_licenses: yes plugin_licenses: yes
plugin_licenses_setup: npm ci # Command to setup target repository plugin_licenses_setup: npm ci # Command to setup target repository
plugin_licenses_ratio: yes # Display used licenses ratio plugin_licenses_ratio: yes # Display used licenses ratio

View File

@@ -3,7 +3,7 @@
with: with:
token: MOCKED_TOKEN token: MOCKED_TOKEN
template: repository template: repository
query: '{"repo":"metrics"}' repo: metrics
plugin_licenses: yes plugin_licenses: yes
plugin_licenses_setup: npm ci plugin_licenses_setup: npm ci
plugin_licenses_ratio: yes plugin_licenses_ratio: yes

View File

@@ -16,6 +16,6 @@ Template crafted for repositories, mimicking GitHub visual identity.
with: with:
# ... other options # ... other options
template: classic template: classic
user: repository-owner # Optional if you're the owner of target repository user: repository-owner # Optional if you're the owner of target repository and you're using your own personal token
query: '{"repo":"repository-name"}' # Use a JSON encoded object to pass your repository name in "repo" key repo: repository-name # Repository name
``` ```