dhei/classic-tokens
@reggi/path-to-regexp
dependabot/npm_and_yarn/main/copy-to-clipboard-4.0.2
dependabot/npm_and_yarn/main/eslint-10.4.0
dependabot/npm_and_yarn/main/npmcli/eslint-config-7.0.0
dependabot/npm_and_yarn/main/proc-log-7.0.0
dependabot/npm_and_yarn/npm_and_yarn-826852524d
dependabot/npm_and_yarn/npm_and_yarn-ab9a7f4bc2
deprecate-totp-2fa
dhei/classic-tokens
gat-bypass-2fa-docs
jpg619/fix-accessibility-content-flow
jpg619/version-bump-tar-2
kartykp/gat-bypass-2fa-docs
kartykp/upgrade-path-to-regex
main
maitxn/version-bump-tar
patch-1
reggi/cache-based-on-version
reggi/dev-engines
reggi/fix-transform-prettier
reggi/overrides
update-search-sensitivity
| 1 | name: Update CLI |
| 2 | |
| 3 | on: |
| 4 | workflow_dispatch: |
| 5 | schedule: |
| 6 | - cron: "14 2 * * *" |
| 7 | |
| 8 | jobs: |
| 9 | update-cli: |
| 10 | outputs: |
| 11 | has_changes: $\{{ steps.status.outputs.has_changes }} |
| 12 | {{> jobYml jobName="Update CLI" }} |
| 13 | - name: Build documentation |
| 14 | run: npm run build -w cli |
| 15 | env: |
| 16 | # token is used to get files from `npm/cli` that |
| 17 | # are not present in the published tarball |
| 18 | GITHUB_TOKEN: $\{{ secrets.GITHUB_TOKEN }} |
| 19 | - name: Check for changes |
| 20 | id: status |
| 21 | run: | |
| 22 | if [ -n "$(git status --porcelain)" ]; then |
| 23 | echo "::set-output name=has_changes::1" |
| 24 | fi |
| 25 | - name: Check in source updates |
| 26 | if: steps.status.outputs.has_changes == '1' |
| 27 | run: | |
| 28 | git add --verbose . |
| 29 | git commit -m 'CLI documentation update from CI' |
| 30 | git push origin main |
| 31 | |
| 32 | publish: |
| 33 | needs: update-cli |
| 34 | if: needs.update-cli.outputs.has_changes == '1' |
| 35 | uses: ./.github/workflows/publish.yml |