mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-05-14 06:58:59 +00:00
af839e9609
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4.0.2 to 4.0.3. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/60edb5dd545a775178f52524783378180af0d1f8...1e60f620b9541d16bece96c5465dc8ee9832be0b) --- updated-dependencies: - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
59 lines
1.4 KiB
YAML
59 lines
1.4 KiB
YAML
name: Generate Theme Readme
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- "themes/index.js"
|
|
|
|
permissions:
|
|
actions: read
|
|
checks: read
|
|
contents: write
|
|
deployments: read
|
|
issues: read
|
|
discussions: read
|
|
packages: read
|
|
pages: read
|
|
pull-requests: read
|
|
repository-projects: read
|
|
security-events: read
|
|
statuses: read
|
|
|
|
jobs:
|
|
generateThemeDoc:
|
|
runs-on: ubuntu-latest
|
|
name: Generate theme doc
|
|
strategy:
|
|
matrix:
|
|
node-version: [18.x]
|
|
|
|
steps:
|
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
cache: npm
|
|
|
|
# Fix the unsafe repo error which was introduced by the CVE-2022-24765 git patches.
|
|
- name: Fix unsafe repo error
|
|
run: git config --global --add safe.directory ${{ github.workspace }}
|
|
|
|
- name: npm install, generate readme
|
|
run: |
|
|
npm ci
|
|
npm run theme-readme-gen
|
|
env:
|
|
CI: true
|
|
|
|
- name: Run Script
|
|
uses: skx/github-action-tester@e29768ff4ff67be9d1fdbccd8836ab83233bebb1 # v0.10.0
|
|
with:
|
|
script: ./scripts/push-theme-readme.sh
|
|
env:
|
|
CI: true
|
|
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
|
|
GH_REPO: ${{ secrets.GH_REPO }}
|