Skip to content

update_path

update_path #13

Workflow file for this run

name: update_path
on:
pull_request:
push:
branches:
- main
schedule:
- cron: 0 8 * * 1
workflow_dispatch:
jobs:
update_PATH_only:
strategy:
matrix:
os: [windows-latest, windows-2019]
runs-on: ${{ matrix.os }}
steps:
- if: ${{ github.event_name == 'pull_request' }}
uses: actions/checkout@v4
- if: ${{ github.event_name == 'pull_request' }}
name: Run actions locally
uses: ./
with:
install_scoop: "false"
add_extras_bucket: "false"
add_nonportable_bucket: "false"
update: "false"
checkup: "false"
update_path: "true"
- if: >
${{ github.event_name == 'push'
|| github.event_name == 'workflow_dispatch' }}
uses: winpax/scoop-setup@main
with:
install_scoop: "false"
update: "false"
checkup: "false"
update_path: "true"
- if: ${{ github.event_name == 'schedule' }}
uses: winpax/[email protected]
with:
install_scoop: "false"
update: "false"
checkup: "false"
update_path: "true"
- name: Confirm PATH and scoop is unavailable.
shell: pwsh
run: |
($Env:Path -match "scoop")
if(Get-Command scoop -ErrorAction SilentlyContinue) {
Write-Error "Unexpectedly found scoop." -ErrorAction Stop
}