Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/magefile/mage-action
GitHub Action for Mage
https://github.com/magefile/mage-action
actions buildscript github-actions golang mage make
Last synced: about 1 month ago
JSON representation
GitHub Action for Mage
- Host: GitHub
- URL: https://github.com/magefile/mage-action
- Owner: magefile
- License: mit
- Created: 2019-09-22T16:16:35.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-28T08:32:51.000Z (about 2 months ago)
- Last Synced: 2024-10-28T09:33:55.659Z (about 2 months ago)
- Topics: actions, buildscript, github-actions, golang, mage, make
- Language: TypeScript
- Homepage: https://github.com/marketplace/actions/mage-action
- Size: 8.9 MB
- Stars: 33
- Watchers: 3
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Codeowners: .github/CODEOWNERS
- Support: .github/SUPPORT.md
Awesome Lists containing this project
- awesome-ccamel - magefile/mage-action - GitHub Action for Mage (TypeScript)
README
Mage Action
GitHub Action for Mage
___
![Mage Action](.github/mage-action.png)
* [Usage](#usage)
* [Customizing](#customizing)
* [inputs](#inputs)
* [License](#license)## Usage
### Quick start
```yaml
name: mageon:
pull_request:
push:jobs:
mage:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Set up Go
uses: actions/setup-go@v5
-
name: Run Mage
uses: magefile/mage-action@v3
with:
version: latest
args: build
```### Install Only
```yaml
name: mageon:
pull_request:
push:jobs:
mage:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Set up Go
uses: actions/setup-go@v5
-
name: Run Mage
uses: magefile/mage-action@v3
with:
install-only: true
-
name: Show Mage version
run: mage --version
```## Customizing
### inputs
The following inputs can be used as `step.with` keys:
| Name | Type | Default | Description |
|----------------|--------|----------|-------------------------------------------|
| `version` | String | `latest` | Mage version. Example: `v1.9.0` |
| `args` | String | | Arguments to pass to Mage |
| `workdir` | String | `.` | Working directory (below repository root) |
| `install-only` | Bool | `false` | Just install Mage |## License
MIT. See `LICENSE` for more details.