Skip to content

Use warning if pipeline superseded #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ The GitHub Action could look like this:
aws-session-token: ${{ secrets.AWS_SESSION_TOKEN }}
aws-region: eu-central-1
- name: Start CodePipeline
uses: moia-oss/[email protected].1
uses: moia-oss/[email protected].2
with:
pipeline: my-pipeline
wait: true # optional (default: false)
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
aws-session-token: ${{ secrets.INT_AWS_SESSION_TOKEN }}
aws-region: eu-central-1
- name: Start CodePipeline
uses: moia-oss/[email protected].1
uses: moia-oss/[email protected].2
with:
pipeline: my-pipeline-int
wait: true
Expand All @@ -103,7 +103,7 @@ jobs:
aws-session-token: ${{ secrets.PRD_AWS_SESSION_TOKEN }}
aws-region: eu-central-1
- name: Start CodePipeline
uses: moia-oss/[email protected].1
uses: moia-oss/[email protected].2
with:
pipeline: my-pipeline-prd
wait: true
Expand Down
4 changes: 2 additions & 2 deletions dist/index.js

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

2 changes: 1 addition & 1 deletion dist/index.js.map

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

4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ const waitForPipeline = async (pipelineName: string, pipelineExecutionId: string
core.error(`Pipeline '${pipelineName}' stopped.`);
return false;
case PipelineExecutionStatus.Superseded:
core.error(`Pipeline '${pipelineName}' was superseded.`);
return false;
core.warning(`Pipeline '${pipelineName}' was superseded. Skipping rest of the execution.`);
return true;
default:
core.error(`Unexpected status: ${status} given.`);
return false;
Expand Down