Skip to content

Commit

Permalink
fix: No job concurrency for docs wf (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
cicdguy authored Aug 14, 2024
1 parent d6cb5ff commit 552083a
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,14 @@ on:
description: An alternate name for the 'latest-tag' documentation item
required: false
type: string
default: ''
default: ""
release-candidate-alt-name:
description: An alternate name for the 'release-candidate' documentation item
required: false
type: string
default: ''
default: ""
branches-or-tags-to-list:
description:
Which branches or tags should be listed under the
description: Which branches or tags should be listed under the
'Versions' dropdown menu on the landing page?
This input should be a regular expression in R.
required: false
Expand Down Expand Up @@ -136,10 +135,6 @@ jobs:
container:
image: ghcr.io/insightsengineering/rstudio:latest

# Only one job can publish to gh-pages branch concurrently.
concurrency:
group: ghpages

steps:
- name: Setup token 🔑
id: github-token
Expand Down Expand Up @@ -308,6 +303,8 @@ jobs:
git config --global user.name "github-actions[bot]"
git config pull.rebase false
git status
# Random delay
sleep $((RANDOM % 10))
git pull origin gh-pages || true
git add -f .
git commit -m "Update pkgdown documentation ${{ github.sha }}" || true
Expand All @@ -333,9 +330,6 @@ jobs:
name: Multi-version docs 📑
needs: docs
runs-on: ubuntu-latest
# Only one job can publish to gh-pages branch concurrently.
concurrency:
group: ghpages
if: >
(github.event_name == 'push' || github.event_name == 'workflow_dispatch')
&& !contains(github.event.commits[0].message, '[skip docs]')
Expand Down Expand Up @@ -384,7 +378,7 @@ jobs:
with:
name: pkgdown.zip

- name: Check if release exists
- name: Check if release exists
id: check-if-release-exists
uses: insightsengineering/release-existence-action@v1

Expand Down

0 comments on commit 552083a

Please sign in to comment.