{"id":50982143,"url":"https://github.com/poudelmadhav/github-workflows","last_synced_at":"2026-06-19T15:33:16.824Z","repository":{"id":365226095,"uuid":"1270816036","full_name":"poudelmadhav/github-workflows","owner":"poudelmadhav","description":"A repo template for GitHub workflows actions that handles releases and merging to develop branch automatically","archived":false,"fork":false,"pushed_at":"2026-06-16T11:16:43.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-16T13:14:19.672Z","etag":null,"topics":["actions","workflows"],"latest_commit_sha":null,"homepage":"","language":null,"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/poudelmadhav.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-16T04:38:09.000Z","updated_at":"2026-06-16T11:16:21.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/poudelmadhav/github-workflows","commit_stats":null,"previous_names":["poudelmadhav/github-workflows"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/poudelmadhav/github-workflows","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poudelmadhav%2Fgithub-workflows","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poudelmadhav%2Fgithub-workflows/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poudelmadhav%2Fgithub-workflows/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poudelmadhav%2Fgithub-workflows/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/poudelmadhav","download_url":"https://codeload.github.com/poudelmadhav/github-workflows/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poudelmadhav%2Fgithub-workflows/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34538220,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-19T02:00:06.005Z","response_time":61,"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","workflows"],"created_at":"2026-06-19T15:33:15.341Z","updated_at":"2026-06-19T15:33:16.813Z","avatar_url":"https://github.com/poudelmadhav.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Workflows\n\nReusable workflows for release management and branch syncing.\n\n\u003e **Private repos:** Go to this repo's Settings → Actions → General → Access and grant access to your org/repos\n\n## Workflows\n\n### 1. Create Release\n\nCreates a GitHub release from `release/v*` or `hotfix/v*` branches after they are merged into `main`.\n\n**Caller examples:**\n\nWith auto-generated release notes:\n\n```yaml\nname: Create Release on Merge\n\non:\n  pull_request_target:\n    types: [closed]\n    branches:\n      - main\n\njobs:\n  create-release:\n    if: github.event.pull_request.merged == true \u0026\u0026 (startsWith(github.event.pull_request.head.ref, 'release/') || startsWith(github.event.pull_request.head.ref, 'hotfix/'))\n    uses: poudelmadhav/github-workflows/.github/workflows/create-release.yml@v3\n    with:\n      branch: ${{ github.event.pull_request.head.ref }}\n    permissions:\n      contents: write\n```\n\nWith PR body as the release body:\n\n```yaml\nname: Create Release on Merge\n\non:\n  pull_request_target:\n    types: [closed]\n    branches:\n      - main\n\njobs:\n  create-release:\n    if: github.event.pull_request.merged == true \u0026\u0026 (startsWith(github.event.pull_request.head.ref, 'release/') || startsWith(github.event.pull_request.head.ref, 'hotfix/'))\n    uses: poudelmadhav/github-workflows/.github/workflows/create-release.yml@v3\n    with:\n      branch: ${{ github.event.pull_request.head.ref }}\n      release_body: ${{ github.event.pull_request.body }}\n    permissions:\n      contents: write\n```\n\n**Inputs:**\n\n| Input          | Required | Description                                                             |\n| -------------- | -------- | ----------------------------------------------------------------------- |\n| `branch`       | yes      | The merged branch name (e.g. `release/v1.1.0`)                          |\n| `release_body` | no       | Optional release body text. Falls back to auto-generated release notes. |\n\n### 2. Sync Main to Develop\n\nCreates a PR from a source branch into a target branch and attempts auto-merge. Optionally auto-approves the PR using a PAT (useful when branch protection requires approvals).\n\n**Caller example:**\n\n```yaml\nname: Sync Main to Develop\n\non:\n  push:\n    branches:\n      - main\n\njobs:\n  sync:\n    uses: poudelmadhav/github-workflows/.github/workflows/sync-main-to-develop.yml@v3\n    with:\n      source_branch: main\n      target_branch: develop\n    secrets:\n      approval_token: ${{ secrets.PAT_TOKEN }}\n    permissions:\n      contents: write\n      pull-requests: write\n```\n\n**Inputs:**\n\n| Input           | Required | Default   | Description            |\n| --------------- | -------- | --------- | ---------------------- |\n| `source_branch` | no       | `main`    | Source branch name     |\n| `target_branch` | no       | `develop` | Target branch name     |\n\n**Secrets:**\n\n| Secret           | Required | Description                                                                 |\n| ---------------- | -------- | --------------------------------------------------------------------------- |\n| `approval_token` | no       | [PAT](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens) to auto-approve the PR. Falls back to `GITHUB_TOKEN` for auto-merge. |\n\n### 3. Ruby Tests\n\nRuns RuboCop and/or RSpec on Ruby projects. Supports explicit Ruby version, `.ruby-version` file auto-detection, and per-tool opt-out.\n\n**Caller example:**\n\n```yaml\nname: CI\n\non:\n  push:\n    branches: [main]\n  pull_request:\n    branches: [main]\n\njobs:\n  test:\n    uses: poudelmadhav/github-workflows/.github/workflows/ruby-tests.yml@v5\n    with:\n      ruby_version: 3.3\n      rubocop: false\n```\n\n**Inputs:**\n\n| Input          | Required | Default | Description                                                    |\n| -------------- | -------- | ------- | -------------------------------------------------------------- |\n| `ruby_version` | no       | —       | Ruby version. Falls back to `.ruby-version`, then `4.0`.       |\n| `rubocop`      | no       | `true`  | Run RuboCop                                                    |\n| `rspec`        | no       | `true`  | Run RSpec                                                      |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpoudelmadhav%2Fgithub-workflows","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpoudelmadhav%2Fgithub-workflows","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpoudelmadhav%2Fgithub-workflows/lists"}