Skip to content

add dependecies workflow #9

add dependecies workflow

add dependecies workflow #9

Workflow file for this run

---
name: Dependencies 📄
on:
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
branches:
- main
push:
branches:
- main
workflow_call:
concurrency:
group: dependencies-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
dependencies:
name: ${{ vars.CI_IMAGE }}
runs-on: ubuntu-latest
container:
image: ${{ vars.CI_IMAGE }}
steps:
- name: Checkout project ⬇️
uses: actions/checkout@v4
with:
path: ${{ github.event.repository.name }}
- name: Install package dependencies 📄
run: |
args <- commandArgs(trailingOnly = TRUE)
path <- args[1]
if (file.exists(path)) {
yaml::yaml.load(readLines(path))$dependencies |>
sapply(function(x) x$repo) |>
pak::pak(dependencies = TRUE, ask = FALSE, upgrade = FALSE)
}
shell: Rscript {0}
working-directory: ${{ github.event.repository.name }}
with:

Check failure on line 46 in .github/workflows/dependencies.yml

View workflow run for this annotation

GitHub Actions / Dependencies 📄

Invalid workflow file

The workflow is not valid. .github/workflows/dependencies.yml (Line: 46, Col: 9): Unexpected value 'with'
PATH: "dependencies.yml"