{"id":22423415,"url":"https://github.com/prantlf/discard-shelf-action","last_synced_at":"2026-05-02T09:32:44.755Z","repository":{"id":201090862,"uuid":"706943874","full_name":"prantlf/discard-shelf-action","owner":"prantlf","description":"GitHub action for discarding the cache with the build output, where it was shelved by shelve-output-action, after it was used for uploading as artefacts for a new release.","archived":false,"fork":false,"pushed_at":"2024-05-07T14:07:31.000Z","size":25,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T10:43:04.878Z","etag":null,"topics":["actions","github","github-actions","release","v","vlang"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/discard-build-output","language":"AMPL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prantlf.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-18T22:56:07.000Z","updated_at":"2024-05-07T14:06:03.000Z","dependencies_parsed_at":"2024-05-07T15:29:23.158Z","dependency_job_id":null,"html_url":"https://github.com/prantlf/discard-shelf-action","commit_stats":null,"previous_names":["prantlf/discard-shelf-action"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prantlf%2Fdiscard-shelf-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prantlf%2Fdiscard-shelf-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prantlf%2Fdiscard-shelf-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prantlf%2Fdiscard-shelf-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prantlf","download_url":"https://codeload.github.com/prantlf/discard-shelf-action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245791899,"owners_count":20672668,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","github","github-actions","release","v","vlang"],"created_at":"2024-12-05T18:11:17.634Z","updated_at":"2026-05-02T09:32:44.711Z","avatar_url":"https://github.com/prantlf.png","language":"AMPL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Discard Shelf with Build Output\n\nGitHub action for discarding the cache with the build output, where it was shelved by [shelve-output-action], after it was used for uploading as artefacts for a new release.\n\nOnly platforms Linux, macOS, Windows on the architecture X64 are supported.\n\n## Usage\n\nDiscards the cache with binary executables produced on each platform and shelved earlier:\n\n```yml\n- uses: prantlf/discard-shelf-action@v3\n```\n\nDepending on the `name` of the executable, it will discard the cache with the following cache keys. For example, for the name `newchanges`:\n\n|    OS   |            Cache Key               |\n|:--------|:-----------------------------------|\n| Linux   | `newchanges-linux-x64.zip-{sha}`   |\n| macOS   | `newchanges-macos-x64.zip-{sha}`   |\n| Windows | `newchanges-windows-x64.zip-{sha}` |\n\nThe name prefix of the archives can be specified by `name`. If not specified, it will be inferred from the project configuration (`v.mod`). The `{sha}` in the cache key is the SHA-1 hash of the current commit.\n\nUse a different name prefix than the default in the package archive name and work only in specific release branches:\n\n```yml\njobs:\n  release:\n    steps:\n    ...\n    - uses: prantlf/discard-shelf-action@v3\n      with:\n        name: vpm\n        branches: master v1.x\n```\n\n## Inputs\n\nThe following parameters can be specified using the `with` object:\n\n### name\n\nType: `String`\u003cbr\u003e\nDefault: (read from `v.mod`)\n\nThe name of the archive without the platform and architecture and without the `.zip` extension. The project name from `v.mod` will be used by default. The expected names of the archives will be `{name}-{os}-{arch}.zip`, for example: `newchanges-linux-x64.zip`.\n\n### branches\n\nType: `String`\u003cbr\u003e\nDefault: `'main master'`\n\nBranches which this action should run for, which are used to publishing releases. Use whitespace for separating the branch names. If you want to use multiple lines in YAML, introduce them with \"\u003e-\". If you want to allow all branches, set the value to \"*\".\n\n### enable\n\nType: `Boolean`\u003cbr\u003e\nDefault: `true`\n\nCan be set to `false` to prevent this action from discarding the cache. It's helpful in the pipeline, which will not continue releasing, but only building and testing, and that will be decided in the middle of a job execution.\n\n### include-linux\n\nType: `Boolean`\u003cbr\u003e\nDefault: `true`\n\nInclude the archive for Linux.\n\n### include-macos\n\nType: `Boolean`\u003cbr\u003e\nDefault: `true`\n\nInclude the archive for macOS.\n\n### include-windows\n\nType: `Boolean`\u003cbr\u003e\nDefault: `true`\n\nInclude the archive for Windows.\n\n## License\n\nCopyright (C) 2023-2024 Ferdinand Prantl\n\nLicensed under the [MIT License].\n\n[MIT License]: http://en.wikipedia.org/wiki/MIT_License\n[shelve-output-action]: https://github.com/prantlf/shelve-output-action\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprantlf%2Fdiscard-shelf-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprantlf%2Fdiscard-shelf-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprantlf%2Fdiscard-shelf-action/lists"}