generated from Arthri/reusable-workflow-template
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
4 changed files
with
21 additions
and
29 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
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,22 +1,24 @@ | ||
# reusable-workflow | ||
A reusable workflow for doing x, y, and z. | ||
# check-eol-composite | ||
A composite action for linting end-of-line sequences. | ||
|
||
## Installation | ||
Add a new workflow under `.github/workflows/` with the following contents. | ||
Open the workflow(s) to add the composite action to, then add the step below to the desired jobs. | ||
```yml | ||
name: New Reusable Workflow | ||
run-name: New Reusable Workflow | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
reusable-workflow: | ||
uses: Arthri/reusable-workflow/.github/workflows/reusable-workflow.yml@v1 | ||
|
||
job: | ||
- name: Check End-of-Line Sequences | ||
uses: Arthri/check-eol-composite@v1 | ||
``` | ||
|
||
## Usage | ||
1. Do this. | ||
1. Do that. | ||
1. This happens. | ||
|
||
### Default End-of-Line Sequence | ||
The workflow enforces `LF` for all files in the index. `autocrlf=true` modifies files in the working tree rather than the index and thus does not affect the composite action. The following example configures the workflow to enforce `CRLF` instead. | ||
```yml | ||
jobs: | ||
job: | ||
- name: Check End-of-Line Sequences | ||
uses: Arthri/check-eol-composite@v1 | ||
with: | ||
default-eol: crlf | ||
``` |
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
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,11 +1 @@ | ||
# Test List | ||
A list of steps for testing the workflow's features. | ||
|
||
## Action fails randomly | ||
|
||
### Steps | ||
1. Push to GitHub. | ||
|
||
### Outputs | ||
1. Workflow triggers. | ||
1. Workflow fails randomly. | ||
See https://github.com/Arthri/check-eol/blob/master/docs/Test_List.md |