mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2024-11-08 07:42:48 +01:00
b357625529
Because of some reason actions started on https://github.com/JetBrains/ideavim/pull/731 pull request and updated it. With this change, forks won't be affected by forked actions. If the action is still needed on fork, these conditions can be changes
46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
# This workflow will build a package using Gradle and then publish it to GitHub packages when a release is created
|
|
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#Publishing-using-gradle
|
|
|
|
# This workflow syncs changes from the docs folder of IdeaVim to the IdeaVim.wiki repository
|
|
|
|
name: Sync docs
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
if: github.repository == 'JetBrains/ideavim'
|
|
|
|
steps:
|
|
- name: Fetch origin repo
|
|
uses: actions/checkout@v3
|
|
with:
|
|
path: origin
|
|
# See end of file updateChangeslog.yml for explanation of this secret
|
|
ssh-key: ${{ secrets.PUSH_TO_PROTECTED_BRANCH_SECRET }}
|
|
|
|
- name: Fetch docs repo
|
|
uses: actions/checkout@v3
|
|
with:
|
|
repository: JetBrains/ideavim.wiki
|
|
path: docs
|
|
|
|
- name: Sync docs
|
|
id: update_authors
|
|
run: cp -a origin/doc/. docs
|
|
|
|
- name: Commit changes
|
|
uses: stefanzweifel/git-auto-commit-action@v4
|
|
with:
|
|
branch: master
|
|
repository: docs
|
|
commit_message: Update docs
|
|
commit_user_name: IdeaVim Bot
|
|
commit_user_email: maintainers@ideavim.dev
|
|
commit_author: IdeaVim Bot <maintainers@ideavim.dev>
|