mirror of
https://github.com/gofiber/storage.git
synced 2025-12-19 00:38:24 +08:00
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3 to 4. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
39 lines
960 B
YAML
39 lines
960 B
YAML
name: 'Sync docs'
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- main
|
|
paths:
|
|
- '**/*.md'
|
|
release:
|
|
types: [published]
|
|
branches:
|
|
- '*/v[0-9]+.[0-9]+.[0-9]+'
|
|
|
|
jobs:
|
|
sync-docs:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
fetch-depth: 2
|
|
|
|
- name: Setup Node.js environment
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '18'
|
|
|
|
- name: Install JQ
|
|
run: sudo apt-get install jq
|
|
|
|
- name: Sync docs
|
|
run: ./.github/scripts/sync_docs.sh
|
|
env:
|
|
EVENT: ${{ github.event_name }}
|
|
TAG_NAME: ${{ github.ref_name }}
|
|
TOKEN: ${{ secrets.DOC_SYNC_TOKEN }}
|