{"id":25253136,"url":"https://github.com/zgosalvez/github-actions-get-flutter-version-env","last_synced_at":"2025-08-24T21:06:28.994Z","repository":{"id":48819746,"uuid":"320283261","full_name":"zgosalvez/github-actions-get-flutter-version-env","owner":"zgosalvez","description":"A Github Action to get the Flutter environment version from the pubspec file","archived":false,"fork":false,"pushed_at":"2025-02-09T07:36:46.000Z","size":3080,"stargazers_count":6,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-09T08:23:21.020Z","etag":null,"topics":["actions","flutter","github","github-actions"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/get-the-flutter-version-environment","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":"2020-12-10T13:37:24.000Z","updated_at":"2025-02-09T07:35:57.000Z","dependencies_parsed_at":"2023-12-03T04:19:44.824Z","dependency_job_id":"db377b86-3662-4c3a-ae9b-edf98017af0f","html_url":"https://github.com/zgosalvez/github-actions-get-flutter-version-env","commit_stats":{"total_commits":52,"total_committers":3,"mean_commits":"17.333333333333332","dds":"0.40384615384615385","last_synced_commit":"6612e3034be02aa7498668168e3497594f37e0c9"},"previous_names":[],"tags_count":53,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zgosalvez%2Fgithub-actions-get-flutter-version-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zgosalvez%2Fgithub-actions-get-flutter-version-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zgosalvez%2Fgithub-actions-get-flutter-version-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zgosalvez%2Fgithub-actions-get-flutter-version-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zgosalvez","download_url":"https://codeload.github.com/zgosalvez/github-actions-get-flutter-version-env/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238410637,"owners_count":19467455,"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","flutter","github","github-actions"],"created_at":"2025-02-12T04:20:16.924Z","updated_at":"2025-02-12T04:20:18.822Z","avatar_url":"https://github.com/zgosalvez.png","language":"JavaScript","readme":"# GitHub Action — Get the Flutter Version Environment\n\nThis GitHub Action (written in composite run steps) allows you to leverage GitHub Actions to get the [Flutter](https://flutter.dev) environment version from the pubspec file. This is primarily used before using the [Flutter action](https://github.com/marketplace/actions/flutter-action).\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* `pubspec-file-path`: The pubspec.yaml file path. Optional. Default: `pubspec.yaml`\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 Flutter version\n\n### Common workflow\n\n1. Your `pubspec.yaml` file must contain the Flutter version under the `environment:flutter:` key. For example:\n```yaml\nenvironment:\n  flutter: 1.22.4\n```\n2. Use the action's output as an input to [Flutter action](https://github.com/marketplace/actions/flutter-action). 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 Flutter version\n        id: get-flutter-version\n        uses: zgosalvez/github-actions-get-flutter-version-env@v2\n      - name: Set up Flutter\n        uses: subosito/flutter-action@v1\n        with:\n          flutter-version: ${{ steps.get-flutter-version.outputs.version }}\n```\n\n## Shout-out\nA special mention goes to [@daohoangson](https://github.com/daohoangson), who came up with the initial solution at [subosito/flutter-action/issues/47#issuecomment-675821988](https://github.com/subosito/flutter-action/issues/47#issuecomment-675821988).\n\n### Flutter Workflows\n\nThis is used in my opinionated [GitHub Actions: Flutter Workflows](https://github.com/zgosalvez/github-actions-flutter-workflows) repository along with other actions for a complete end-to-end DevOps experience.\n\n## License\nThe scripts and documentation in this project are released under the [MIT License](LICENSE.md)\n","funding_links":["https://github.com/sponsors/zgosalvez"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzgosalvez%2Fgithub-actions-get-flutter-version-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzgosalvez%2Fgithub-actions-get-flutter-version-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzgosalvez%2Fgithub-actions-get-flutter-version-env/lists"}