{"id":13569146,"url":"https://github.com/earthly/actions-setup","last_synced_at":"2025-10-04T15:05:42.046Z","repository":{"id":41951890,"uuid":"468493071","full_name":"earthly/actions-setup","owner":"earthly","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-11T17:14:40.000Z","size":7638,"stargazers_count":24,"open_issues_count":14,"forks_count":9,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-23T10:41:58.723Z","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/earthly.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-10T20:01:21.000Z","updated_at":"2025-03-13T23:41:19.000Z","dependencies_parsed_at":"2024-01-23T19:45:42.161Z","dependency_job_id":"5c76ba6e-dbbe-4a1b-95f7-2fb0645f4ab1","html_url":"https://github.com/earthly/actions-setup","commit_stats":{"total_commits":106,"total_committers":12,"mean_commits":8.833333333333334,"dds":0.679245283018868,"last_synced_commit":"fa9dc1768aff029443a10bdb1f84c324fb17cc43"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/earthly%2Factions-setup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/earthly%2Factions-setup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/earthly%2Factions-setup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/earthly%2Factions-setup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/earthly","download_url":"https://codeload.github.com/earthly/actions-setup/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246939161,"owners_count":20857916,"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-08-01T14:00:36.426Z","updated_at":"2025-10-04T15:05:37.013Z","avatar_url":"https://github.com/earthly.png","language":"TypeScript","readme":"# Setup Earthly - GitHub Action\n\nThis repository contains an action for use with GitHub Actions, which installs [earthly](https://github.com/earthly/earthly) with a semver-compatible version.\n\nThe package is installed into `/home/runner/.earthly` (or equivalent on Windows) and the `bin` subdirectory is added to the PATH.\n\n## Usage\n\nFull example:\n\n```yml\nname: GitHub Actions CI\n\non:\n  push:\n    branches: [main]\n  pull_request:\n    branches: [main]\n\njobs:\n  tests:\n    name: example earthly test\n    runs-on: ubuntu-latest\n    steps:\n      - uses: earthly/actions-setup@v1\n        with:\n          github-token: ${{ secrets.GITHUB_TOKEN }}\n          version: \"latest\" # or pin to an specific version, e.g. \"0.8.1\"\n      - uses: actions/checkout@v2\n      - name: Docker login # to avoid dockerhub rate-limiting\n        run: docker login --username \"${{ secrets.DOCKERHUB_USERNAME }}\" --password \"${{ secrets.DOCKERHUB_PASSWORD }}\"\n      - name: what version is installed?\n        run: earthly --version\n      - name: run the earthly hello world\n        run: earthly github.com/earthly/hello-world:main+hello\n```\n\nInstall the latest version of earthly:\n\n```yaml\n- name: Install earthly\n  uses: earthly/actions-setup@v1\n  with:\n    github-token: ${{ secrets.GITHUB_TOKEN }}\n```\n\nInstall a specific version of earthly:\n\n```yaml\n- name: Install earthly\n  uses: earthly/actions-setup@v1\n  with:\n    github-token: ${{ secrets.GITHUB_TOKEN }}\n    version: 0.8.1\n```\n\nInstall a version that adheres to a semver range\n\n```yaml\n- name: Install earthly\n  uses: earthly/actions-setup@v1\n  with:\n    github-token: ${{ secrets.GITHUB_TOKEN }}\n    version: ^0.8.0\n```\n\n### Testing\n\nYou can perform a local test by running `earthly +all`.\n\nIt is also possible to use [act](https://github.com/nektos/act) to test the contents of the github actions config.\n\n## Configuration\n\nThe action can be configured with the following arguments:\n\n- `version` - The version of earthly to install. Default is `latest`. Accepts semver style values.\n- `prerelease` (optional) - allow prerelease versions.\n- `use-cache` (optional) - whether to use the cache to store earthly or not.\n- `github-token` (optional) - GitHub token for fetching earthly version list. Recommended to avoid GitHub API ratelimit.\n","funding_links":[],"categories":["Tooling"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fearthly%2Factions-setup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fearthly%2Factions-setup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fearthly%2Factions-setup/lists"}