Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
steps:
- uses: actions/checkout@v6

- uses: ./.github/workflows/install
- uses: api2r/actions/install@v1
with:
use-container: "${{ matrix.config.container != '' }}"
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/copilot-setup-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
steps:
- uses: actions/checkout@v6

- uses: ./.github/workflows/install
- uses: api2r/actions/install@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
cache-version: copilot
Expand All @@ -45,6 +45,7 @@ jobs:
any::testthat
any::usethis
any::withr
Gilead-BioStats/qcthat
local::.

- name: Install air
Expand Down
118 changes: 0 additions & 118 deletions .github/workflows/install/action.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/pkgdown-cleanup.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This workflow removes the pkgdown preview directory when a PR is closed.
name: Clean up pkgdown preview

on:
pull_request:
types: [closed]

permissions:
contents: write

jobs:
clean-pr-preview:
runs-on: ubuntu-latest
steps:
- name: Checkout gh-pages branch
uses: actions/checkout@v6
with:
repository: ${{ github.repository }}
token: ${{ secrets.GITHUB_TOKEN }}
ref: gh-pages

- name: Remove PR preview directory
run: |
pr_dir="pr/${{ github.event.number }}"
if [ -d "$pr_dir" ]; then
git config --local user.name "$GITHUB_ACTOR"
git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com"
git rm -rf "$pr_dir"
git commit -m "Remove preview for PR #${{ github.event.number }}"
git push
else
echo "Directory $pr_dir does not exist, skipping cleanup."
fi
2 changes: 1 addition & 1 deletion .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
steps:
- uses: actions/checkout@v6

- uses: ./.github/workflows/install
- uses: api2r/actions/install@v1
with:
use-container: "true"
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-commands.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

- uses: ./.github/workflows/install
- uses: api2r/actions/install@v1
with:
use-container: "true"
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/qcthat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
steps:
- uses: actions/checkout@v6

- uses: ./.github/workflows/install
- uses: api2r/actions/install@v1
with:
use-container: "true"
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
steps:
- uses: actions/checkout@v6

- uses: ./.github/workflows/install
- uses: api2r/actions/install@v1
with:
use-container: "true"
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ inst/doc
docs
/.positai/
conversation-export*.json
.positai
Loading