Cleanup old nightly PowerShell Releases #639
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Cleanup old nightly PowerShell Releases | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 3 * * *' | |
permissions: read-all | |
jobs: | |
# This workflow contains a single job called "cleanup" | |
cleanup: | |
# The type of runner that the job will run on | |
runs-on: windows-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v4 | |
with: | |
ref: dev | |
- name: Unlist nightly nuget packages | |
env: | |
POWERSHELLGALLERY_API_KEY : ${{ secrets.POWERSHELLGALLERY_API_KEY }} | |
shell: pwsh | |
run: | | |
./build/Unlist-Nightly.ps1 |