mirror of
https://github.com/earthly/actions-setup.git
synced 2024-12-26 06:21:01 +08:00
renovate[bot]
ac61cf4b40
Update dependency make-dir to v5 (#97)
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [make-dir](https://togithub.com/sindresorhus/make-dir) | [`^4.0.0` -> `^5.0.0`](https://renovatebot.com/diffs/npm/make-dir/4.0.0/5.0.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/make-dir/5.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/make-dir/5.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/make-dir/4.0.0/5.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/make-dir/4.0.0/5.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>sindresorhus/make-dir (make-dir)</summary> ### [`v5.0.0`](https://togithub.com/sindresorhus/make-dir/releases/tag/v5.0.0) [Compare Source](https://togithub.com/sindresorhus/make-dir/compare/v4.0.0...v5.0.0) ##### Breaking - Require Node.js 18 [`120a81e`](https://togithub.com/sindresorhus/make-dir/commit/120a81e) - This package is now pure ESM. **Please [read this](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).** - **Actually, you should just use the built-in [`fsPromises.mkdir('…', {recursive: true})`](https://nodejs.org/api/fs.html#fspromisesmkdirpath-options) instead.** - Changed from default export to named exports: - `require('make-dir')` → `import {makeDirectory} from 'make-dir'` - `require('make-dir').sync` → `import {makeDirectorySync} from 'make-dir'` </details> --- ### Configuration 📅 **Schedule**: Branch creation - "after 6am on monday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/earthly/actions-setup). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMzEuMCIsInVwZGF0ZWRJblZlciI6IjM3LjMzMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJtYWpvciIsInJlbm92YXRlIl19--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Setup Earthly - GitHub Action
This repository contains an action for use with GitHub Actions, which installs earthly with a semver-compatible version.
The package is installed into /home/runner/.earthly
(or equivalent on Windows) and the bin
subdirectory is added to the PATH.
Usage
Full example:
name: GitHub Actions CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
tests:
name: example earthly test
runs-on: ubuntu-latest
steps:
- uses: earthly/actions-setup@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
version: "latest" # or pin to an specific version, e.g. "0.8.1"
- uses: actions/checkout@v2
- name: Docker login # to avoid dockerhub rate-limiting
run: docker login --username "${{ secrets.DOCKERHUB_USERNAME }}" --password "${{ secrets.DOCKERHUB_PASSWORD }}"
- name: what version is installed?
run: earthly --version
- name: run the earthly hello world
run: earthly github.com/earthly/hello-world:main+hello
Install the latest version of earthly:
- name: Install earthly
uses: earthly/actions-setup@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Install a specific version of earthly:
- name: Install earthly
uses: earthly/actions-setup@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
version: 0.8.1
Install a version that adheres to a semver range
- name: Install earthly
uses: earthly/actions-setup@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
version: ^0.8.0
Testing
You can perform a local test by running earthly +all
.
It is also possible to use act to test the contents of the github actions config.
Configuration
The action can be configured with the following arguments:
version
- The version of earthly to install. Default islatest
. Accepts semver style values.prerelease
(optional) - allow prerelease versions.use-cache
(optional) - whether to use the cache to store earthly or not.github-token
(optional) - GitHub token for fetching earthly version list. Recommended to avoid GitHub API ratelimit.
Description
Languages
TypeScript
69.6%
Earthly
30.4%