From 8d94f162ef32bb4c1798cc3d8552312fc6879eae Mon Sep 17 00:00:00 2001 From: Mlen-Too Wesley Date: Mon, 25 Nov 2024 02:26:54 -0500 Subject: [PATCH] Update action workflows Update GitHub Actions workflows to use the latest versions of actions and dependencies. * **greta-install-deps.yaml** - Update `actions/checkout` to `v3` - Update `r-lib/actions/setup-r` to `v2` - Update `r-lib/actions/setup-pandoc` to `v2` * **pr-commands.yaml** - Update `actions/checkout` to `v3` - Update `r-lib/actions/pr-fetch` to `v2` - Update `r-lib/actions/setup-r` to `v2` - Update `r-lib/actions/pr-push` to `v2` * **R-CMD-check.yaml** - Update `actions/checkout` to `v3` - Update `r-lib/actions/setup-r` to `v2` - Update `r-lib/actions/check-r-package` to `v2` * **test-coverage.yaml** - Update `actions/checkout` to `v3` - Update `r-lib/actions/setup-r` to `v2` - Update `actions/cache` to `v3` --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/mtwesley/greta.censored?shareId=XXXX-XXXX-XXXX-XXXX). --- .github/workflows/R-CMD-check.yaml | 3 +-- .github/workflows/greta-install-deps.yaml | 6 +++--- .github/workflows/pr-commands.yaml | 16 ++++++++-------- .github/workflows/test-coverage.yaml | 6 +++--- README.md | 1 - 5 files changed, 15 insertions(+), 17 deletions(-) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 2bfc291..705a9aa 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -46,7 +46,7 @@ jobs: steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: r-lib/actions/setup-r@v2 id: install-r @@ -105,4 +105,3 @@ jobs: - uses: r-lib/actions/check-r-package@v2 with: args: 'c("--no-manual", "--as-cran", "--no-multiarch")' - diff --git a/.github/workflows/greta-install-deps.yaml b/.github/workflows/greta-install-deps.yaml index 7f946c2..fd99c38 100644 --- a/.github/workflows/greta-install-deps.yaml +++ b/.github/workflows/greta-install-deps.yaml @@ -16,11 +16,11 @@ jobs: env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - - uses: r-lib/actions/setup-r@v1 + - uses: r-lib/actions/setup-r@v2 - - uses: r-lib/actions/setup-pandoc@v1 + - uses: r-lib/actions/setup-pandoc@v2 - name: Fix Conda permissions on macOS if: runner.os == 'macOS' diff --git a/.github/workflows/pr-commands.yaml b/.github/workflows/pr-commands.yaml index e5edf9f..41e9dbb 100644 --- a/.github/workflows/pr-commands.yaml +++ b/.github/workflows/pr-commands.yaml @@ -10,11 +10,11 @@ jobs: env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} steps: - - uses: actions/checkout@v2 - - uses: r-lib/actions/pr-fetch@v1 + - uses: actions/checkout@v3 + - uses: r-lib/actions/pr-fetch@v2 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - - uses: r-lib/actions/setup-r@v1 + - uses: r-lib/actions/setup-r@v2 - name: Install dependencies run: Rscript -e 'install.packages(c("remotes", "roxygen2"))' -e 'remotes::install_deps(dependencies = TRUE)' - name: Document @@ -25,7 +25,7 @@ jobs: git config --local user.name "GitHub Actions" git add man/\* NAMESPACE git commit -m 'Document' - - uses: r-lib/actions/pr-push@v1 + - uses: r-lib/actions/pr-push@v2 with: repo-token: ${{ secrets.GITHUB_TOKEN }} style: @@ -35,11 +35,11 @@ jobs: env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} steps: - - uses: actions/checkout@v2 - - uses: r-lib/actions/pr-fetch@v1 + - uses: actions/checkout@v3 + - uses: r-lib/actions/pr-fetch@v2 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - - uses: r-lib/actions/setup-r@v1 + - uses: r-lib/actions/setup-r@v2 - name: Install dependencies run: Rscript -e 'install.packages("styler")' - name: Style @@ -50,6 +50,6 @@ jobs: git config --local user.name "GitHub Actions" git add \*.R git commit -m 'Style' - - uses: r-lib/actions/pr-push@v1 + - uses: r-lib/actions/pr-push@v2 with: repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml index 9644845..5659fc5 100644 --- a/.github/workflows/test-coverage.yaml +++ b/.github/workflows/test-coverage.yaml @@ -16,9 +16,9 @@ jobs: env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - - uses: r-lib/actions/setup-r@v1 + - uses: r-lib/actions/setup-r@v2 - uses: r-lib/actions/setup-pandoc@v1 @@ -30,7 +30,7 @@ jobs: shell: Rscript {0} - name: Restore R package cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ${{ env.R_LIBS_USER }} key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }} diff --git a/README.md b/README.md index a37ea01..59e75e9 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,3 @@ - ## greta.censored: Censored distributions in greta