{"id":23180942,"url":"https://github.com/replicatedhq/reusable-workflows","last_synced_at":"2025-04-05T03:13:45.921Z","repository":{"id":147344521,"uuid":"487069694","full_name":"replicatedhq/reusable-workflows","owner":"replicatedhq","description":"Contains workflows that can be pulled into your project to run templated actions with built in best practices.","archived":false,"fork":false,"pushed_at":"2024-12-23T16:00:30.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-03-23T03:33:15.992Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/replicatedhq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-04-29T18:13:48.000Z","updated_at":"2024-09-06T21:17:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"a534f099-e7ad-4593-a353-aec09f33c569","html_url":"https://github.com/replicatedhq/reusable-workflows","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replicatedhq%2Freusable-workflows","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replicatedhq%2Freusable-workflows/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replicatedhq%2Freusable-workflows/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replicatedhq%2Freusable-workflows/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/replicatedhq","download_url":"https://codeload.github.com/replicatedhq/reusable-workflows/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247280270,"owners_count":20912967,"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":[],"created_at":"2024-12-18T08:13:53.844Z","updated_at":"2025-04-05T03:13:45.884Z","avatar_url":"https://github.com/replicatedhq.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Reusable workflows for replicatedhq\n\nThis repository holds reusable GitHub Actions workflows that can be used across multiple repositories in the  `replicatedhq` organization.\n\nMore information on using reusable workflows can be found [here](https://docs.github.com/en/enterprise-cloud@latest/actions/using-workflows/reusing-workflows).\n\n## Usage\n1. Create a workflow yaml file under `.github/workflows`. Where possible, use the naming convention `\u003cdomain\u003e-\u003caction\u003e.yaml`, e.g. `pr-enforce-labels.yaml`. \\[[docs](https://docs.github.com/en/enterprise-cloud@latest/actions/using-workflows/reusing-workflows#example-reusable-workflow)\\] Example workflow:\n```yaml\non:\n  workflow_call:\n    inputs:\n      greeting:\n        description: 'A greeting to display'\n        required: true\n  jobs:\n    say-hello:\n      runs-on: ubuntu-latest\n      steps:\n        - name: Greet\n          run: |\n            echo \"${{ inputs.greeting }}\" \n```\n  - Reusable workflows are triggered with the `workflow_call` event \\[[docs](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onworkflow_call)\\].\n  - Inputs and secrets should be used to parameterize the workflow to maximize the reuse potential.\n    - Secrets are not passed to called workflows by default. In order to pass secrets, they must either be defined in the workflow, or `secrets: inherit` must be set on the caller.\n  - Prefer using specific versions for `runs-on` instead of `ubuntu-latest`. Since these workflows may be used in multiple repositories, any breaking behavior introduced in a new runner image may have a wide blast radius.\n2. Add a job to the calling workflow in the repository where you would like to run the reusable workflow. \\[[docs](https://docs.github.com/en/enterprise-cloud@latest/actions/using-workflows/reusing-workflows#calling-a-reusable-workflow)\\] Example:\n```yaml\njobs:\n  greet:\n    uses: replicatedhq/reusable-workflows/.github/workflows/say-hello.yaml@main\n    with:\n      greeting: Hi there!\n```\n  - To pin to a specific version of the repo, add the GitHub SHA ref to the `uses` field, e.g. `replicatedhq/reusable-workflows/.github/workflows/say-hello.yaml@1a2b3c4`\n    - There are no current plans to tag versions in this repo.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freplicatedhq%2Freusable-workflows","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freplicatedhq%2Freusable-workflows","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freplicatedhq%2Freusable-workflows/lists"}