{"id":31642183,"url":"https://github.com/flex-development/gh-release-url-action","last_synced_at":"2026-05-09T03:32:17.825Z","repository":{"id":316498872,"uuid":"1063634214","full_name":"flex-development/gh-release-url-action","owner":"flex-development","description":"Create a URL for a GitHub release","archived":false,"fork":false,"pushed_at":"2026-04-27T21:42:19.000Z","size":2073,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-27T23:23:36.614Z","etag":null,"topics":["actions","deploy","deployment","environment","ghcr","github","gpr","release","url"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/gh-release-url","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flex-development.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/funding.yml","license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["flex-development"]}},"created_at":"2025-09-24T22:50:52.000Z","updated_at":"2026-04-27T21:39:50.000Z","dependencies_parsed_at":"2025-12-30T01:04:23.910Z","dependency_job_id":null,"html_url":"https://github.com/flex-development/gh-release-url-action","commit_stats":null,"previous_names":["flex-development/gh-release-url-action"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/flex-development/gh-release-url-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flex-development%2Fgh-release-url-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flex-development%2Fgh-release-url-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flex-development%2Fgh-release-url-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flex-development%2Fgh-release-url-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flex-development","download_url":"https://codeload.github.com/flex-development/gh-release-url-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flex-development%2Fgh-release-url-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32805905,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","deploy","deployment","environment","ghcr","github","gpr","release","url"],"created_at":"2025-10-07T03:57:02.600Z","updated_at":"2026-05-09T03:32:17.786Z","avatar_url":"https://github.com/flex-development.png","language":"TypeScript","funding_links":["https://github.com/sponsors/flex-development"],"categories":[],"sub_categories":[],"readme":"# gh-release-url\n\n[![github release](https://img.shields.io/github/v/release/flex-development/gh-release-url-action.svg?include_prereleases\\\u0026sort=semver)](https://github.com/flex-development/gh-release-url-action/releases/latest)\n[![test](https://github.com/flex-development/gh-release-url-action/actions/workflows/test.yml/badge.svg)](https://github.com/flex-development/gh-release-url-action/actions/workflows/test.yml)\n[![module type: esm](https://img.shields.io/badge/module%20type-esm-brightgreen)](https://github.com/voxpelli/badges-cjs-esm)\n[![license](https://img.shields.io/github/license/flex-development/gh-release-url-action.svg)](LICENSE.md)\n[![conventional commits](https://img.shields.io/badge/-conventional%20commits-fe5196?logo=conventional-commits\\\u0026logoColor=ffffff)](https://conventionalcommits.org)\n[![yarn](https://img.shields.io/badge/-yarn-2c8ebb?style=flat\\\u0026logo=yarn\\\u0026logoColor=ffffff)](https://yarnpkg.com)\n\nCreate a URL for a GitHub release\n\n## Contents\n\n- [What is this?](#what-is-this)\n- [Use](#use)\n- [Inputs](#inputs)\n  - [`artifact`](#artifact)\n  - [`owner`](#owner)\n  - [`repo`](#repo)\n  - [`server`](#server)\n  - [`tag-prefix`](#tag-prefix)\n  - [`version`](#version)\n- [Outputs](#outputs)\n  - [`artifact`](#artifact-1)\n  - [`tag`](#tag)\n  - [`url`](#url)\n- [Related](#related)\n- [Contribute](#contribute)\n\n## What is this?\n\nThis is a simple, but useful, action for creating GitHub release URLs.\n\n## Use\n\n```yaml\n---\nname: release\non:\n  pull_request:\n    branches:\n      - main\n    types:\n      - closed\nenv:\n  REF: ${{ github.event.pull_request.merge_commit_sha }}\n  REF_NAME: ${{ format('{0}@{1}', github.base_ref, github.event.pull_request.merge_commit_sha) }}\njobs:\n  preflight:\n    if: github.event.pull_request.merged \u0026\u0026 startsWith(github.head_ref, 'release/')\n    permissions:\n      contents: read\n    runs-on: ubuntu-latest\n    outputs:\n      tag: ${{ steps.environment.outputs.tag }}\n      url: ${{ steps.environment.outputs.url }}\n      version: ${{ steps.version.outputs.manifest }}\n    steps:\n      - id: checkout\n        name: Checkout ${{ env.REF_NAME }}\n        uses: actions/checkout@v5.0.0\n        with:\n          ref: ${{ env.REF }}\n      - id: version\n        name: Get release version\n        uses: flex-development/manver-action@1.0.1\n      - id: tag-prefix\n        name: Get release tag prefix\n        uses: flex-development/jq-action@1.0.0\n        with:\n          data: grease.config.json\n          filter: .tagprefix\n      - id: environment\n        name: Get release url\n        uses: flex-development/gh-release-url-action@2.0.0\n        with:\n          tag-prefix: ${{ steps.tag-prefix.outputs.result }}\n          version: ${{ steps.version.outputs.manifest }}\n  publish:\n    needs: preflight\n    runs-on: ubuntu-latest\n    environment:\n      name: release\n      url: ${{ needs.preflight.outputs.url }}\n    env:\n      GITHUB_TOKEN: ${{ secrets.GH_REPO_TOKEN }}\n      NOTES_FILE: RELEASE_NOTES.md\n    steps:\n      - id: checkout\n        name: Checkout ${{ env.REF_NAME }}\n        uses: actions/checkout@v5.0.0\n        with:\n          fetch-depth: 0\n          persist-credentials: true\n          ref: ${{ env.REF }}\n          token: ${{ env.GITHUB_TOKEN }}\n      - id: gpg-import\n        name: Import GPG key\n        uses: crazy-max/ghaction-import-gpg@v6.3.0\n        with:\n          git_config_global: true\n          git_push_gpgsign: false\n          git_tag_gpgsign: true\n          git_user_signingkey: true\n          gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}\n          passphrase: ${{ secrets.GPG_PASSPHRASE }}\n          trust_level: 5\n      - id: node\n        name: Setup Node.js\n        uses: actions/setup-node@v5.0.0\n        with:\n          cache: yarn\n          cache-dependency-path: yarn.lock\n          node-version-file: .nvmrc\n      - id: yarn\n        name: Install dependencies\n        run: yarn --no-immutable \u0026\u0026 echo \"$GITHUB_WORKSPACE/node_modules/.bin\" \u003e\u003e$GITHUB_PATH\n      - id: pack\n        name: Pack project\n        run: yarn pack -o %s-%v.tgz\n      - id: release-notes\n        name: Generate release notes\n        env:\n          TZ: ${{ vars.TZ }}\n        run: grease changelog -wo $NOTES_FILE \u0026\u0026 echo \"$(cat $NOTES_FILE)\" \u003e\u003e$GITHUB_STEP_SUMMARY\n      - id: tag\n        name: Create annotated tag\n        run: 'grease tag -ps -m \"release: {tag}\" ${{ needs.preflight.outputs.version }}'\n      - id: publish\n        name: Publish release\n        run: |\n          gh release create ${{ needs.preflight.outputs.tag }} *.tgz --title=${{ needs.preflight.outputs.tag }} --notes-file=$NOTES_FILE --verify-tag\n```\n\n## Inputs\n\n### `artifact`\n\nThe name of the release artifact to create a download URL for (optional).\n\n### `owner`\n\n\u003e **default**: `${{ github.repository_owner }}`\n\nThe repository owner (optional).\n\n### `repo`\n\n\u003e **default**: `${{ github.event.repository.name }}`\n\nThe name of the repository (optional).\n\n### `server`\n\n\u003e **default**: `${{ github.server_url }}`\n\nThe URL of the GitHub server (optional).\n\n### `tag-prefix`\n\nThe prefix to append to the [release version](#version) when building the release tag component of the URL (optional).\n\n### `version`\n\nThe release version or tag to create a URL for.\n\n## Outputs\n\n### `artifact`\n\nThe [release artifact](#artifact) download URL.\n\n### `tag`\n\nThe release tag the URLs were created with.\n\n### `url`\n\nThe release URL.\n\n## Related\n\n- [`flex-development/ghr-url-action`][ghr-url-action] — create a url for a github registry\n- [`flex-development/npm-url-action`][npm-url-action] — create a url for the npm registry\n\n## Contribute\n\nSee [`CONTRIBUTING.md`](CONTRIBUTING.md).\n\nThis project has a [code of conduct](./CODE_OF_CONDUCT.md). By interacting with this repository, organization, or\ncommunity you agree to abide by its terms.\n\n[ghr-url-action]: https://github.com/flex-development/ghr-url-action\n\n[npm-url-action]: https://github.com/flex-development/npm-url-action\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflex-development%2Fgh-release-url-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflex-development%2Fgh-release-url-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflex-development%2Fgh-release-url-action/lists"}