-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #269 from magefile/octokit
use Octokit client to check mage release
- Loading branch information
Showing
15 changed files
with
814 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ ___ | |
* [Usage](#usage) | ||
* [Customizing](#customizing) | ||
* [inputs](#inputs) | ||
* [Keep up-to-date with GitHub Dependabot](#keep-up-to-date-with-github-dependabot) | ||
* [Using on GHES](#using-on-ghes) | ||
* [License](#license) | ||
|
||
## Usage | ||
|
@@ -58,28 +58,42 @@ jobs: | |
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) | | ||
| 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) | | ||
|
||
## Keep up-to-date with GitHub Dependabot | ||
## Using on GHES | ||
|
||
Since [Dependabot](https://docs.github.com/en/github/administering-a-repository/keeping-your-actions-up-to-date-with-github-dependabot) | ||
has [native GitHub Actions support](https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates#package-ecosystem), | ||
to enable it on your GitHub repo all you need to do is add the `.github/dependabot.yml` file: | ||
If you specify a version or `latest` of GoReleaser in your workflow, the | ||
version will be downloaded from [GitHub Releases in `magefile/mage`](https://github.com/magefile/mage/releases) | ||
repository. These calls to `magefile/mage` are made via unauthenticated | ||
requests, which are limited to [60 requests per hour per IP](https://docs.github.com/en/rest/overview/resources-in-the-rest-api#rate-limiting). | ||
|
||
If more requests are made within the time frame, then you will start to see | ||
rate-limit errors during downloading that looks like: | ||
|
||
``` | ||
##[error]API rate limit exceeded for... | ||
``` | ||
|
||
To get a higher rate limit, you can [generate a personal access token on github.com](https://github.com/settings/tokens/new) | ||
and pass it as the `github_token` input for the action: | ||
|
||
```yaml | ||
version: 2 | ||
updates: | ||
# Maintain dependencies for GitHub Actions | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
uses: magefile/mage-action@v2 | ||
with: | ||
github_token: ${{ secrets.GH_DOTCOM_TOKEN }} | ||
version: v1.14.0 | ||
``` | ||
|
||
If the runner is not able to access `github.com`, it will take the default one | ||
available on the GitHub Runner or runner's tool cache. See "[Setting up the | ||
tool cache on self-hosted runners without internet | ||
access](https://docs.github.com/en/[email protected]/admin/github-actions/managing-access-to-actions-from-githubcom/setting-up-the-tool-cache-on-self-hosted-runners-without-internet-access)" | ||
for more information. | ||
|
||
## License | ||
|
||
MIT. See `LICENSE` for more details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.