{"id":25253123,"url":"https://github.com/zgosalvez/github-actions-get-action-runs-using-version","last_synced_at":"2025-10-26T23:31:22.680Z","repository":{"id":65162454,"uuid":"583551697","full_name":"zgosalvez/github-actions-get-action-runs-using-version","owner":"zgosalvez","description":"Get the GitHub Action runs.using version from the Action metadata file","archived":false,"fork":false,"pushed_at":"2025-02-08T12:39:46.000Z","size":2025,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-10T18:51:22.856Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/zgosalvez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"zgosalvez"}},"created_at":"2022-12-30T05:49:35.000Z","updated_at":"2025-01-11T00:45:08.000Z","dependencies_parsed_at":"2023-12-17T02:24:55.644Z","dependency_job_id":"505c1a12-b026-491e-90d7-d48fa8d50d1a","html_url":"https://github.com/zgosalvez/github-actions-get-action-runs-using-version","commit_stats":{"total_commits":31,"total_committers":2,"mean_commits":15.5,"dds":"0.22580645161290325","last_synced_commit":"b29aada9ae354752d16f489e03d8580852120f30"},"previous_names":[],"tags_count":37,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zgosalvez%2Fgithub-actions-get-action-runs-using-version","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zgosalvez%2Fgithub-actions-get-action-runs-using-version/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zgosalvez%2Fgithub-actions-get-action-runs-using-version/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zgosalvez%2Fgithub-actions-get-action-runs-using-version/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zgosalvez","download_url":"https://codeload.github.com/zgosalvez/github-actions-get-action-runs-using-version/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238410600,"owners_count":19467447,"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":"2025-02-12T04:20:03.712Z","updated_at":"2025-10-26T23:31:22.187Z","avatar_url":"https://github.com/zgosalvez.png","language":"JavaScript","funding_links":["https://github.com/sponsors/zgosalvez"],"categories":[],"sub_categories":[],"readme":"# GitHub Action — Get the GitHub Action runs.using Version\n\nThis GitHub Action (written in composite run steps) allows you to leverage GitHub Actions to get the [runs.using](https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runs) version from the Action metadata file. This is primarily used before using the [setup-node action](https://github.com/marketplace/actions/setup-node-js-environment) when testing GitHub Actions.\n\n## Usage\n### Pre-requisites\nCreate a workflow `.yml` file in your `.github/workflows` directory. An [example workflow](#common-workflow) is available below. For more information, reference the GitHub Help Documentation for [Creating a workflow file](https://help.github.com/en/articles/configuring-a-workflow#creating-a-workflow-file).\n\n### Inputs\nFor more information on this input, see the [Workflow syntax for GitHub Actions](https://docs.github.com/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstepswith)\n\n* `action-file-path`: The action.yml file path. Optional. Default: `action.yml`\n\n### Outputs\nFor more information on this output, see the [Workflow syntax for GitHub Actions](https://docs.github.com/actions/reference/workflow-syntax-for-github-actions#jobsjob_idoutputs) and the [Context and expression syntax for GitHub Actions](https://docs.github.com/actions/reference/context-and-expression-syntax-for-github-actions#steps-context)\n\n* `version`: The runs.using version. For example, `20` for `node20`\n\n### Common workflow\n\n1. Your `action.yml` file must contain the version under the `runs:using:` key. For example:\n```yaml\nruns:\n  using: 'node20'\n```\n2. Use the action's output as an input to [setup-node action](https://github.com/marketplace/actions/setup-node-js-environment). For example:\n```yaml\non: push\n\nname: Sample Workflow\n\njobs:\n  build:\n    name: Example\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout code\n        uses: actions/checkout@v2\n      - name: Get runs.using version\n        id: get-runs-using-version\n        uses: zgosalvez/github-actions-get-action-runs-using-version@v1\n      - name: Set up Node\n        uses: actions/setup-node@v3\n        with:\n          node-version: ${{ steps.get-runs-using-version.outputs.version }}\n```\n\n### GitHub Action Workflows\n\nThis is used in the CI workflows of my [GitHub Actions](https://github.com/zgosalvez?tab=repositories\u0026q=github-actions-) repositories, including this one.\n\n## License\nThe scripts and documentation in this project are released under the [MIT License](LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzgosalvez%2Fgithub-actions-get-action-runs-using-version","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzgosalvez%2Fgithub-actions-get-action-runs-using-version","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzgosalvez%2Fgithub-actions-get-action-runs-using-version/lists"}