Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sobird/deploy-action
my deploy github action
https://github.com/sobird/deploy-action
Last synced: 6 days ago
JSON representation
my deploy github action
- Host: GitHub
- URL: https://github.com/sobird/deploy-action
- Owner: sobird
- License: mit
- Created: 2024-01-30T12:37:12.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-04-29T19:47:45.000Z (8 months ago)
- Last Synced: 2024-04-29T20:58:51.924Z (8 months ago)
- Language: TypeScript
- Size: 962 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# Deploy Action
[![GitHub Super-Linter](https://github.com/sobird/deploy-action/actions/workflows/linter.yml/badge.svg)](https://github.com/super-linter/super-linter)
![CI](https://github.com/sobird/deploy-action/actions/workflows/ci.yml/badge.svg)This action prints `Hello, World!` or `Hello, !` to the log. To
learn how this action was built, see
[Creating a JavaScript action](https://docs.github.com/en/actions/creating-actions/creating-a-javascript-action).## Create Your Own Action
To create your own action, you can use this repository as a template! Just
follow the below instructions:1. Click the **Use this template** button at the top of the repository
1. Select **Create a new repository**
1. Select an owner and name for your new repository
1. Click **Create repository**
1. Clone your new repository> [!CAUTION]
>
> Make sure to remove or update the [`CODEOWNERS`](./CODEOWNERS) file! For
> details on how to use this file, see
> [About code owners](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners).## Usage
Here's an example of how to use this action in a workflow file:
```yaml
name: Example Workflowon:
workflow_dispatch:
inputs:
who-to-greet:
description: Who to greet in the log
required: true
default: 'World'
type: stringjobs:
say-hello:
name: Say Hello
runs-on: ubuntu-lateststeps:
# Change @main to a specific commit SHA or version tag, e.g.:
# actions/deploy-action@e76147da8e5c81eaf017dede5645551d4b94427b
# actions/[email protected]
- name: Print to Log
id: print-to-log
uses: actions/deploy-action@main
with:
who-to-greet: ${{ inputs.who-to-greet }}
```For example workflow runs, check out the
[Actions tab](https://github.com/sobird/deploy-action/actions)!
:rocket:## Inputs
| Input | Default | Description |
| -------------- | ------- | ------------------------------- |
| `who-to-greet` | `World` | The name of the person to greet |## Outputs
| Output | Description |
| ------ | ----------------------- |
| `time` | The time we greeted you |- [使用 GitHub CodeQL 进行代码扫描](https://learn.microsoft.com/zh-cn/training/modules/code-scanning-with-github-codeql/)