This repository has been archived by the owner on Sep 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sakari Mursu
committed
Sep 30, 2020
1 parent
5858f1c
commit 2b15253
Showing
1 changed file
with
4 additions
and
2 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 |
---|---|---|
|
@@ -23,12 +23,14 @@ jobs: | |
run: touch uncommitted.tmp | ||
- name: Check for uncommitted changes | ||
id: check-changes | ||
uses: mskri/[email protected].0 | ||
uses: mskri/[email protected].1 | ||
- name: Evaluate if there are changes | ||
if: steps.check-changes.outputs.outcome == failure() | ||
run: echo "There are uncommitted changes" | ||
``` | ||
Check uncommitted changes and print them out | ||
```yaml | ||
name: Check uncommitted changes and print them out | ||
jobs: | ||
|
@@ -42,7 +44,7 @@ jobs: | |
run: touch uncommitted.tmp | ||
- name: Check for uncommitted changes | ||
id: check-changes | ||
uses: mskri/[email protected].0 | ||
uses: mskri/[email protected].1 | ||
- name: Print uncommitted changes | ||
if: steps.check-changes.outputs.changes != '' | ||
run: echo "There are uncommitted changes" | ||
|