mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-05-31 06:11:17 +00:00
a3b8a7856c
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 4.2.4 to 5.0.2. - [Release notes](https://github.com/peter-evans/create-pull-request/releases) - [Commits](https://github.com/peter-evans/create-pull-request/compare/38e0b6e68b4c852a5500a94740f0e535e0d7ba54...153407881ec5c347639a548ade7d8ad1d6740e38) --- updated-dependencies: - dependency-name: peter-evans/create-pull-request dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
59 lines
1.7 KiB
YAML
59 lines
1.7 KiB
YAML
name: Update supported languages
|
|
on:
|
|
schedule:
|
|
- cron: "0 0 */30 * *"
|
|
|
|
permissions:
|
|
actions: read
|
|
checks: read
|
|
contents: read
|
|
deployments: read
|
|
issues: read
|
|
discussions: read
|
|
packages: read
|
|
pages: read
|
|
pull-requests: write
|
|
repository-projects: read
|
|
security-events: read
|
|
statuses: read
|
|
|
|
jobs:
|
|
updateLanguages:
|
|
if: github.repository == 'anuraghazra/github-readme-stats'
|
|
name: Update supported languages
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node-version: [18.x]
|
|
|
|
steps:
|
|
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # v3.7.0
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
cache: npm
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
env:
|
|
CI: true
|
|
|
|
- name: Run update-languages-json.js script
|
|
run: npm run generate-langs-json
|
|
|
|
- name: Create Pull Request if upstream language file is changed
|
|
uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 # v5.0.2
|
|
with:
|
|
commit-message: "refactor: update languages JSON"
|
|
branch: "update_langs/patch"
|
|
delete-branch: true
|
|
title: Update languages JSON
|
|
body:
|
|
"The
|
|
[update-langs](https://github.com/anuraghazra/github-readme-stats/actions/workflows/update-langs.yaml)
|
|
action found new/updated languages in the [upstream languages JSON
|
|
file](https://raw.githubusercontent.com/github/linguist/master/lib/linguist/languages.yml)."
|
|
labels: "ci, lang-card"
|