diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml index 5f743f2a0..e12dce62c 100644 --- a/.github/workflows/generate.yml +++ b/.github/workflows/generate.yml @@ -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 @@ -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 @@ -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 @@ -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 @@ -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'