Skip to content
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

fix: No job concurrency for docs wf #249

Merged
merged 1 commit into from
Aug 14, 2024
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
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
Loading