-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This update adds support for `action.yaml` files (instead of just `action.yml`) Closes #52
- Loading branch information
Showing
8 changed files
with
80 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Do not commit your actual .env file to Git! This may contain secrets or other | ||
# private information. | ||
|
||
# GitHub Actions inputs should follow `INPUT_<name>` format (case-insensitive). | ||
INPUT_milliseconds=2400 | ||
|
||
# Enable/disable step debug logs | ||
ACTIONS_STEP_DEBUG=false | ||
|
||
# Step summary output location | ||
GITHUB_STEP_SUMMARY='summary.md' |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: TypeScript (Success) | ||
description: This action returns without error | ||
|
||
inputs: | ||
myInput: | ||
description: An input | ||
required: true | ||
default: 'default value' | ||
|
||
outputs: | ||
myOutput: | ||
description: An output | ||
|
||
runs: | ||
using: node20 | ||
main: dist/index.js |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/* eslint-disable @typescript-eslint/no-floating-promises */ | ||
|
||
import { run } from './main' | ||
|
||
run() |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { getInput, info, setOutput, summary } from '@actions/core' | ||
|
||
export async function run(): Promise<void> { | ||
const myInput: string = getInput('myInput') | ||
|
||
setOutput('myOutput', myInput) | ||
|
||
summary.addRaw('TypeScript Action Succeeded!') | ||
await summary.write() | ||
|
||
info('TypeScript Action Succeeded!') | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "@github/local-action", | ||
"description": "Local Debugging for GitHub Actions", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"author": "Nick Alteen <[email protected]>", | ||
"private": false, | ||
"homepage": "https://github.com/github/local-action", | ||
|
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