-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added nuget packages source * test * Changed to windows * fixed version * fix * fix nuget * fixed nuget.config * Fixed test * Nuget fixes * git * working release * Added cron job * switch to keep 3 packages versions * Update .github/workflows/main.yml * Update .github/workflows/main.yml Co-authored-by: Shargon <[email protected]> * change secret * change delete also --------- Co-authored-by: Jimmy <[email protected]> Co-authored-by: Shargon <[email protected]>
- Loading branch information
1 parent
4a5a7f5
commit 25ed6d6
Showing
3 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Nuget Package Cleanup (github) | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * *' # Run every day at 24:00 | ||
|
||
jobs: | ||
delete-pkgs: | ||
name: Delete Old Nuget Packages | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Delete Neo Package | ||
uses: actions/delete-package-versions@v4 | ||
with: | ||
package-name: Neo | ||
package-type: nuget | ||
min-versions-to-keep: 3 | ||
token: "${{ secrets.GITHUB_TOKEN }}" | ||
|
||
- name: Delete Neo.ConsoleService Package | ||
uses: actions/delete-package-versions@v4 | ||
with: | ||
package-name: Neo.ConsoleService | ||
package-type: nuget | ||
min-versions-to-keep: 3 | ||
token: "${{ secrets.GITHUB_TOKEN }}" | ||
|
||
- name: Delete Neo.ConsoleService Package | ||
uses: actions/delete-package-versions@v4 | ||
with: | ||
package-name: Neo.ConsoleService | ||
package-type: nuget | ||
min-versions-to-keep: 3 | ||
token: "${{ secrets.GITHUB_TOKEN }}" | ||
|
||
- name: Delete Neo.Json Package | ||
uses: actions/delete-package-versions@v4 | ||
with: | ||
package-name: Neo.Json | ||
package-type: nuget | ||
min-versions-to-keep: 3 | ||
token: "${{ secrets.GITHUB_TOKEN }}" | ||
|
||
- name: Delete Neo.VM Package | ||
uses: actions/delete-package-versions@v4 | ||
with: | ||
package-name: Neo.VM | ||
package-type: nuget | ||
min-versions-to-keep: 3 | ||
token: "${{ secrets.GITHUB_TOKEN }}" |
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