2022-02-15 22:18:20 +01:00
|
|
|
---
|
2022-10-01 17:59:23 +02:00
|
|
|
name: static data
|
2022-02-15 22:18:20 +01:00
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
schedule:
|
|
|
|
# twice peer week
|
|
|
|
- cron: '0 0 * * 1,4'
|
|
|
|
# for now, scheduled, we can enable on push master but not make much sense now
|
|
|
|
# push:
|
|
|
|
# branches:
|
|
|
|
# - master
|
2022-11-12 08:42:01 +02:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read # to fetch code (actions/checkout)
|
|
|
|
|
2022-02-15 22:18:20 +01:00
|
|
|
jobs:
|
2022-02-15 22:29:59 +01:00
|
|
|
prepare:
|
2022-02-15 22:18:20 +01:00
|
|
|
name: Run script
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-10-06 15:36:01 +02:00
|
|
|
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v3
|
2022-02-15 22:18:20 +01:00
|
|
|
with:
|
|
|
|
persist-credentials: false
|
2022-02-15 22:29:59 +01:00
|
|
|
fetch-depth: 0
|
2023-08-21 16:51:37 +02:00
|
|
|
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # tag=v3
|
2022-02-15 22:18:20 +01:00
|
|
|
with:
|
2022-10-01 14:08:40 +02:00
|
|
|
node-version: 18.x
|
2022-02-15 22:18:20 +01:00
|
|
|
- name: install pnpm
|
2023-04-13 07:27:44 +02:00
|
|
|
run: sudo npm i pnpm@latest-8 -g
|
2022-02-15 22:18:20 +01:00
|
|
|
- name: install dependencies
|
|
|
|
run: pnpm install
|
2022-10-01 17:59:23 +02:00
|
|
|
- name: Build Translations percentage
|
2023-04-12 17:55:39 +02:00
|
|
|
run: pnpm --filter @verdaccio/crowdin-translations build
|
2022-02-15 22:18:20 +01:00
|
|
|
- name: update contributors
|
2022-02-15 22:29:59 +01:00
|
|
|
run: pnpm run contributors
|
2022-02-15 22:18:20 +01:00
|
|
|
env:
|
|
|
|
TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2022-12-25 18:48:18 +01:00
|
|
|
- name: update addson data
|
|
|
|
run: pnpm script:addson
|
2022-10-01 17:59:23 +02:00
|
|
|
- name: update translations
|
|
|
|
run: pnpm run translations
|
|
|
|
env:
|
|
|
|
TOKEN: ${{ secrets.CROWDIN_VERDACCIO_API_KEY }}
|
2022-02-15 22:18:20 +01:00
|
|
|
- name: format
|
2022-02-15 22:29:59 +01:00
|
|
|
run: pnpm format
|
2022-02-15 22:18:20 +01:00
|
|
|
- name: Commit & Push changes
|
2022-12-20 07:46:41 +01:00
|
|
|
uses: actions-js/push@156f2b10c3aa000c44dbe75ea7018f32ae999772 # tag=v1.4
|
2022-02-15 22:18:20 +01:00
|
|
|
with:
|
2022-02-15 22:36:40 +01:00
|
|
|
github_token: ${{ secrets.TOKEN_VERDACCIOBOT_GITHUB }}
|
2022-10-01 17:59:23 +02:00
|
|
|
message: "chore: updated static data"
|
2022-02-15 22:18:20 +01:00
|
|
|
branch: master
|
2022-02-15 22:36:40 +01:00
|
|
|
author_email: verdaccio.npm@gmail.com
|
|
|
|
author_name: verdacciobot
|