Skip to content

Instantly share code, notes, and snippets.

@kgriffs
Created January 16, 2024 17:04
Show Gist options
  • Save kgriffs/50b7c490e0f28443481b9d1ec528c657 to your computer and use it in GitHub Desktop.
Save kgriffs/50b7c490e0f28443481b9d1ec528c657 to your computer and use it in GitHub Desktop.

Revisions

  1. kgriffs created this gist Jan 16, 2024.
    11 changes: 11 additions & 0 deletions example.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    - name: Cache downloaded file
    id: cache-some-file
    uses: actions/cache@v3
    with:
    path: some-file
    key: ${{ runner.os }}-downloaded-file-${{ hashFiles('some-file') }}
    - name: Fetch smctl MSI
    if: steps.cache-some-file.outputs.cache-hit != 'true'
    shell: pwsh
    run: |
    Invoke-WebRequest -Uri https://example.com/some-file -OutFile some-file