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:
# ... other options
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
```

View File

@@ -60,8 +60,8 @@ on:
# Schedule updates (each hour)
schedule: [{cron: "0 * * * *"}]
# Lines below let you run workflow manually and on each commit (optional)
push: {branches: ["master", "main"]}
workflow_dispatch:
push: {branches: ["master", "main"]}
jobs:
github-metrics:
runs-on: ubuntu-latest
@@ -71,8 +71,6 @@ jobs:
with:
# Your GitHub 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).

4
package-lock.json generated
View File

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

View File

@@ -1,6 +1,6 @@
{
"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 !",
"main": "index.mjs",
"scripts": {

View File

@@ -144,8 +144,8 @@
` # Schedule updates (each hour)`,
` schedule: [{cron: "0 * * * *"}]`,
` # Lines below let you run workflow manually and on each commit`,
` push: {branches: ["master", "main"]}`,
` workflow_dispatch:`,
` push: {branches: ["master", "main"]}`,
`jobs:`,
` github-metrics:`,
` runs-on: ubuntu-latest`,
@@ -154,8 +154,6 @@
` with:`,
` # Your GitHub 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`,
` user: ${this.user }`,

View File

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

View File

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

View File

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