Merge pull request #32 from per1234/rename
Change project name to "arduino/setup-task"
This commit is contained in:
Vendored
+2
-2
@@ -2,8 +2,8 @@ contact_links:
|
||||
- name: Learn about GitHub Actions
|
||||
url: https://docs.github.com/en/actions
|
||||
about: Everything you need to know to get started with GitHub Actions.
|
||||
- name: Learn about using the arduino/setup-taskfile action
|
||||
url: https://github.com/arduino/setup-taskfile#readme
|
||||
- name: Learn about using the arduino/setup-task action
|
||||
url: https://github.com/arduino/setup-task#readme
|
||||
about: Detailed usage documentation is available here.
|
||||
- name: Support request
|
||||
url: https://forum.arduino.cc/
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ jobs:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install Taskfile
|
||||
- name: Install Task
|
||||
uses: arduino/actions/setup-taskfile@master
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
+2
-2
@@ -41,7 +41,7 @@ jobs:
|
||||
- name: Initialize markdownlint-cli problem matcher
|
||||
uses: xt0rted/markdownlint-problem-matcher@v1
|
||||
|
||||
- name: Install Taskfile
|
||||
- name: Install Task
|
||||
uses: arduino/actions/setup-taskfile@master
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
@@ -57,7 +57,7 @@ jobs:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install Taskfile
|
||||
- name: Install Task
|
||||
uses: arduino/actions/setup-taskfile@master
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
+1
-1
@@ -44,7 +44,7 @@ jobs:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install Taskfile
|
||||
- name: Install Task
|
||||
uses: arduino/actions/setup-taskfile@master
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
+2
-2
@@ -82,14 +82,14 @@ jobs:
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Run action, using invalid version
|
||||
id: setup-taskfile
|
||||
id: setup-task
|
||||
continue-on-error: true
|
||||
uses: ./
|
||||
with:
|
||||
version: 2.42.x
|
||||
|
||||
- name: Fail the job if the action run succeeded
|
||||
if: steps.setup-taskfile.outcome == 'success'
|
||||
if: steps.setup-task.outcome == 'success'
|
||||
run: |
|
||||
echo "::error::The action run was expected to fail, but passed!"
|
||||
exit 1
|
||||
|
||||
+1
-1
@@ -68,6 +68,6 @@ See [step-debug-logs](https://github.com/actions/toolkit/blob/master/docs/action
|
||||
|
||||
Instructions for releasing a new version of the action:
|
||||
|
||||
1. If the release will increment the major version, update the action refs in the examples in README.md (e.g., `uses: arduino/setup-taskfile@v1` -> `uses: arduino/setup-taskfile@v2`).
|
||||
1. If the release will increment the major version, update the action refs in the examples in README.md (e.g., `uses: arduino/setup-task@v1` -> `uses: arduino/setup-task@v2`).
|
||||
1. Create a [GitHub release](https://docs.github.com/en/github/administering-a-repository/managing-releases-in-a-repository#creating-a-release), following the `vX.Y.Z` tag name convention. Make sure to follow [the SemVer specification](https://semver.org/).
|
||||
1. Rebase the release branch for that major version (e.g., `v1` branch for the `v1.x.x` tags) on the tag. If no branch exists for the release's major version, create one.
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
# `arduino/setup-taskfile`
|
||||
# `arduino/setup-task`
|
||||
|
||||
[](https://github.com/arduino/setup-taskfile/actions/workflows/check-typescript-task.yml)
|
||||
[](https://github.com/arduino/setup-taskfile/actions/workflows/check-tsconfig.yml)
|
||||
[](https://github.com/arduino/setup-taskfile/actions/workflows/check-npm.yml)
|
||||
[](https://github.com/arduino/setup-taskfile/actions/workflows/test-integration.yml)
|
||||
[](https://github.com/arduino/setup-taskfile/actions/workflows/check-action-metadata-task.yml)
|
||||
[](https://github.com/arduino/setup-taskfile/actions/workflows/check-markdown-task.yml)
|
||||
[](https://github.com/arduino/setup-taskfile/actions/workflows/spell-check-task.yml)
|
||||
[](https://github.com/arduino/setup-taskfile/actions/workflows/check-license.yml)
|
||||
[](https://github.com/arduino/setup-task/actions/workflows/check-typescript-task.yml)
|
||||
[](https://github.com/arduino/setup-task/actions/workflows/check-tsconfig.yml)
|
||||
[](https://github.com/arduino/setup-task/actions/workflows/check-npm.yml)
|
||||
[](https://github.com/arduino/setup-task/actions/workflows/test-integration.yml)
|
||||
[](https://github.com/arduino/setup-task/actions/workflows/check-action-metadata-task.yml)
|
||||
[](https://github.com/arduino/setup-task/actions/workflows/check-markdown-task.yml)
|
||||
[](https://github.com/arduino/setup-task/actions/workflows/spell-check-task.yml)
|
||||
[](https://github.com/arduino/setup-task/actions/workflows/check-license.yml)
|
||||
|
||||
A [GitHub Actions](https://docs.github.com/en/actions) action that makes the [Task](https://taskfile.dev/#/) task runner / build tool available to use in your workflow.
|
||||
|
||||
@@ -32,15 +32,15 @@ It will be convenient to use [`${{ secrets.GITHUB_TOKEN }}`](https://docs.github
|
||||
To get the action's default version of Task just add this step:
|
||||
|
||||
```yaml
|
||||
- name: Install Taskfile
|
||||
uses: arduino/setup-taskfile@main
|
||||
- name: Install Task
|
||||
uses: arduino/setup-task@main
|
||||
```
|
||||
|
||||
If you want to pin a major or minor version you can use the `.x` wildcard:
|
||||
|
||||
```yaml
|
||||
- name: Install Taskfile
|
||||
uses: arduino/setup-taskfile@main
|
||||
- name: Install Task
|
||||
uses: arduino/setup-task@main
|
||||
with:
|
||||
version: '2.x'
|
||||
```
|
||||
@@ -48,8 +48,8 @@ If you want to pin a major or minor version you can use the `.x` wildcard:
|
||||
To pin the exact version:
|
||||
|
||||
```yaml
|
||||
- name: Install Taskfile
|
||||
uses: arduino/setup-taskfile@main
|
||||
- name: Install Task
|
||||
uses: arduino/setup-task@main
|
||||
with:
|
||||
version: '2.6.1'
|
||||
```
|
||||
@@ -57,7 +57,7 @@ To pin the exact version:
|
||||
## Security
|
||||
|
||||
If you think you found a vulnerability or other security-related bug in this project, please read our
|
||||
[security policy](https://github.com/arduino/setup-taskfile/security/policy) and report the bug to our Security Team 🛡️
|
||||
[security policy](https://github.com/arduino/setup-task/security/policy) and report the bug to our Security Team 🛡️
|
||||
Thank you!
|
||||
|
||||
e-mail contact: security@arduino.cc
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Copyright (c) 2019 ARDUINO SA
|
||||
//
|
||||
// The software is released under the GNU General Public License, which covers the main body
|
||||
// of the arduino/setup-taskfile code. The terms of this license can be found at:
|
||||
// of the arduino/setup-task code. The terms of this license can be found at:
|
||||
// https://www.gnu.org/licenses/gpl-3.0.en.html
|
||||
//
|
||||
// You can be released from the requirements of the above licenses by purchasing
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
name: 'Setup Task'
|
||||
name: 'arduino/setup-task'
|
||||
description: 'Download Task and add it to the PATH'
|
||||
author: 'Arduino'
|
||||
inputs:
|
||||
|
||||
Vendored
+4
-4
@@ -9,7 +9,7 @@
|
||||
// Copyright (c) 2019 ARDUINO SA
|
||||
//
|
||||
// The software is released under the GNU General Public License, which covers the main body
|
||||
// of the arduino/setup-taskfile code. The terms of this license can be found at:
|
||||
// of the arduino/setup-task code. The terms of this license can be found at:
|
||||
// https://www.gnu.org/licenses/gpl-3.0.en.html
|
||||
//
|
||||
// You can be released from the requirements of the above licenses by purchasing
|
||||
@@ -78,12 +78,12 @@ function fetchVersions(repoToken) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
let rest;
|
||||
if (repoToken !== "") {
|
||||
rest = new restm.RestClient("setup-taskfile", "", [], {
|
||||
rest = new restm.RestClient("setup-task", "", [], {
|
||||
headers: { Authorization: `Bearer ${repoToken}` }
|
||||
});
|
||||
}
|
||||
else {
|
||||
rest = new restm.RestClient("setup-taskfile");
|
||||
rest = new restm.RestClient("setup-task");
|
||||
}
|
||||
const tags = (yield rest.get("https://api.github.com/repos/go-task/task/git/refs/tags")).result || [];
|
||||
return tags
|
||||
@@ -224,7 +224,7 @@ exports.getTask = getTask;
|
||||
// Copyright (c) 2019 ARDUINO SA
|
||||
//
|
||||
// The software is released under the GNU General Public License, which covers the main body
|
||||
// of the arduino/setup-taskfile code. The terms of this license can be found at:
|
||||
// of the arduino/setup-task code. The terms of this license can be found at:
|
||||
// https://www.gnu.org/licenses/gpl-3.0.en.html
|
||||
//
|
||||
// You can be released from the requirements of the above licenses by purchasing
|
||||
|
||||
Generated
+1
-1
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "setup-taskfile",
|
||||
"name": "setup-task",
|
||||
"version": "0.0.0",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "setup-taskfile",
|
||||
"name": "setup-task",
|
||||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"description": "Setup Task action",
|
||||
@@ -10,7 +10,7 @@
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/arduino/setup-taskfile.git"
|
||||
"url": "git+https://github.com/arduino/setup-task.git"
|
||||
},
|
||||
"keywords": [
|
||||
"actions",
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
[tool.poetry]
|
||||
name = "setup-taskfile"
|
||||
name = "setup-task"
|
||||
version = "0.0.0"
|
||||
description = "GitHub Actions action to install Task"
|
||||
authors = ["Arduino <info@arduino.cc>"]
|
||||
|
||||
+3
-3
@@ -1,7 +1,7 @@
|
||||
// Copyright (c) 2019 ARDUINO SA
|
||||
//
|
||||
// The software is released under the GNU General Public License, which covers the main body
|
||||
// of the arduino/setup-taskfile code. The terms of this license can be found at:
|
||||
// of the arduino/setup-task code. The terms of this license can be found at:
|
||||
// https://www.gnu.org/licenses/gpl-3.0.en.html
|
||||
//
|
||||
// You can be released from the requirements of the above licenses by purchasing
|
||||
@@ -47,11 +47,11 @@ interface ITaskRef {
|
||||
async function fetchVersions(repoToken: string): Promise<string[]> {
|
||||
let rest: restm.RestClient;
|
||||
if (repoToken !== "") {
|
||||
rest = new restm.RestClient("setup-taskfile", "", [], {
|
||||
rest = new restm.RestClient("setup-task", "", [], {
|
||||
headers: { Authorization: `Bearer ${repoToken}` }
|
||||
});
|
||||
} else {
|
||||
rest = new restm.RestClient("setup-taskfile");
|
||||
rest = new restm.RestClient("setup-task");
|
||||
}
|
||||
|
||||
const tags: ITaskRef[] =
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// Copyright (c) 2019 ARDUINO SA
|
||||
//
|
||||
// The software is released under the GNU General Public License, which covers the main body
|
||||
// of the arduino/setup-taskfile code. The terms of this license can be found at:
|
||||
// of the arduino/setup-task code. The terms of this license can be found at:
|
||||
// https://www.gnu.org/licenses/gpl-3.0.en.html
|
||||
//
|
||||
// You can be released from the requirements of the above licenses by purchasing
|
||||
|
||||
Reference in New Issue
Block a user