Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisBoudreau committed Feb 22, 2022
1 parent 0841dc5 commit 3d28fc7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 58 deletions.
7 changes: 4 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ author: '[email protected]'
inputs:
token:
required: true
description: "This should be a personal access token with access to your repository. Ex: ${{ secrets.GITHUB_TOKEN }}"
description: "This should be a personal access token with access to your repository"
default: ${{ github.token }}
deployment_outcome:
required: false
description: >
Outcome of the deployment(s). If you want the action to verify multiple deployments, you must stringify.
Accepted values are any values from DeploymentOutcome enum: https://github.com/agendrix/wait-for-ecs-service-deployment-action/blob/main/src/ecs/types.ts"
Ex: ${{ needs.deploy.deployment_outcome }} or ${{ toJSON([needs.deploy-1.deployment_outcome, needs.deploy-2.deployment_outcome]) }}
Accepted values are any values from DeploymentOutcome enum: https://github.com/agendrix/wait-for-ecs-service-deployment-action/blob/main/src/ecs/types.ts
Ex: ${{ need/s.deploy.deployment_outcome }} or ${{ toJSON([need/s.deploy-1.deployment_outcome, need/s.deploy-2.deployment_outcome]) }}
outputs:
conclusion:
description: Conclusion of the current workflow run
Expand Down
48 changes: 0 additions & 48 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 0 additions & 7 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
WorkflowRunConclusion,
JobConclusion
} from "./types";
import { validateRequiredInputs } from "../helpers/action/validateRequiredInputs";

async function getJobConclusions() {
const auth = createActionAuth();
Expand Down Expand Up @@ -36,12 +35,6 @@ function hasSkippedDeployments() {

async function run(): Promise<void> {
try {
validateRequiredInputs([
"run_id",
"token",
"repository",
"repository_owner"
]);
const jobsConclusion = await getJobConclusions();
let conclusion = "";
if (jobsConclusion.includes(JobConclusion.FAILURE)) {
Expand Down

0 comments on commit 3d28fc7

Please sign in to comment.