Skip to content

ci: fix mutex and pull strategy #995

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 11, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions .github/workflows/generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
branches:
- master

concurrency: vimdoc-ja-deploy
# global concurrency limit access to vim-jp/vimdoc-ja per workflow

jobs:
generate:
runs-on: ubuntu-latest
Expand All @@ -30,10 +33,6 @@ jobs:
vim -eu tools/maketags.vim

cd ..
- name: Lock mutex
uses: shogo82148/actions-mutex@v1
with:
key: ${{ github.job }}
- name: Update target
run: |
cd target
Expand All @@ -56,10 +55,14 @@ jobs:

https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
branch: master
pull_strategy: 'NO-PULL'
pull: 'NO-PULL'

deploy:
runs-on: ubuntu-latest
needs: generate
# "deploy" update vimdoc-ja/gh-pages branch
# work after "generate" to updated vimdoc-ja/master branch
# parallel work conflict vimdoc-ja repo status
steps:
- name: checkout master
uses: actions/checkout@v2
Expand All @@ -84,10 +87,6 @@ jobs:
make html

cd ..
- name: Lock mutex
uses: shogo82148/actions-mutex@v1
with:
key: ${{ github.job }}
- name: Update target
run: |
cd target
Expand All @@ -108,4 +107,4 @@ jobs:

https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
branch: gh-pages
pull_strategy: 'NO-PULL'
pull: 'NO-PULL'