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
0 parents
commit 4b0ebdc
Showing
19 changed files
with
288 additions
and
0 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 @@ | ||
* text=auto eol=lf |
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,32 @@ | ||
name: Bug Report | ||
description: Create a report to help us improve | ||
title: '[Bug]: ' | ||
labels: [ "bug", "triage" ] | ||
assignees: [] | ||
body: | ||
- type: textarea | ||
attributes: | ||
label: Description | ||
description: A clear and concise description of what the bug is. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Reproduction | ||
placeholder: |- | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Expected Behavior | ||
placeholder: A clear and concise description of what you expected to happen. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Additional Context | ||
description: Add any other context about the problem here(such as a repository). |
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,27 @@ | ||
name: Feature request | ||
description: Suggest an idea for this project | ||
title: '[Feature]: ' | ||
labels: [ "enhancement", "triage" ] | ||
assignees: [] | ||
body: | ||
- type: textarea | ||
attributes: | ||
label: Description | ||
description: A clear and concise description of what the problem is. | ||
placeholder: I'm always frustrated when [...] | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Solution | ||
description: A clear and concise description of what you want to happen. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Alternatives | ||
description: A clear and concise description of any alternative solutions or features you've considered. | ||
- type: textarea | ||
attributes: | ||
label: Additional Context | ||
description: Add any other context about the problem here. |
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,17 @@ | ||
name: Other | ||
description: Submit an uncategorized issue | ||
title: '[Other]: ' | ||
labels: [ "other" ] | ||
assignees: [] | ||
body: | ||
- type: textarea | ||
attributes: | ||
label: Description | ||
description: A clear and concise description of what the problem is. | ||
placeholder: I'm always frustrated when [...] | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Additional Context | ||
description: Add any other context about the problem here. |
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,7 @@ | ||
Click on the `Preview` tab and select a template: | ||
|
||
- [Merge Request](?expand=1&labels=triage&quick_pull=1&template=merge_request.md) | ||
- [Patch Release Request](?expand=1&labels=release,release%3Apatch&quick_pull=1&template=patch_release_request.md&title=Release%20vMajor.Minor.Patch%5B%20%7C%20Release%20Name%5D) | ||
- [Minor Release Request](?expand=1&labels=release,release%3Aminor&quick_pull=1&template=minor_release_request.md&title=Release%20vMajor.Minor.0%5B%20%7C%20Release%20Name%5D) | ||
- [Major Release Request](?expand=1&labels=release,release%3Amajor&quick_pull=1&template=major_release_request.md&title=Release%20vMajor.0.0%5B%20%7C%20Release%20Name%5D) | ||
- [Prerelease Request](?expand=1&labels=release,release%3Aprerelease&quick_pull=1&template=prerelease_request.md&title=Prerelease%20vMajor.Minor.Patch%5B-suffix%5D%5B%20%7C%20Release%20Name%5D) |
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,21 @@ | ||
<!-- | ||
Release Description | ||
--> | ||
|
||
## 🆕 Features | ||
<!-- | ||
- Added this | ||
- Added that | ||
--> | ||
|
||
## 🐞 Fixes | ||
<!-- | ||
- Fixed this | ||
- Fixed that | ||
- Fixed all of them | ||
--> | ||
|
||
## ❗ Breaking Changes | ||
<!-- | ||
- `API.SendRequest` has been rewritten and its parameters have changed | ||
--> |
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,9 @@ | ||
## Description | ||
<!-- A list of what the merge request changes. --> | ||
|
||
## Intent | ||
<!-- A summary of why the merge request should be merged. --> | ||
|
||
## Additional Context | ||
<!-- Additional information such as motivation or inspiration. --> | ||
None. |
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 @@ | ||
<!-- | ||
Release Description | ||
--> | ||
|
||
## 🆕 Features | ||
<!-- | ||
- Added this | ||
- Added that | ||
--> | ||
|
||
## 🐞 Fixes | ||
<!-- | ||
- Fixed this | ||
- Fixed that | ||
- Fixed all of them | ||
--> |
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,10 @@ | ||
<!-- | ||
Release Description | ||
--> | ||
|
||
## 🐞 Fixes | ||
<!-- | ||
- Fixed this | ||
- Fixed that | ||
- Fixed all of them | ||
--> |
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,21 @@ | ||
<!-- | ||
Prerelease Description | ||
--> | ||
|
||
## 🆕 Features | ||
<!-- | ||
- Added this | ||
- Added that | ||
--> | ||
|
||
## 🐞 Fixes | ||
<!-- | ||
- Fixed this | ||
- Fixed that | ||
- Fixed all of them | ||
--> | ||
|
||
## ❗ Breaking Changes | ||
<!-- | ||
- `API.SendRequest` has been rewritten and its parameters have changed | ||
--> |
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 @@ | ||
name: Check End-of-Line Sequence | ||
run-name: Check End-of-Line Sequence | ||
|
||
on: | ||
push: | ||
branches: [ master, dev ] | ||
pull_request: | ||
branches: [ master, dev ] | ||
|
||
jobs: | ||
check-eol: | ||
uses: Arthri/check-eol/.github/workflows/check-eol.yml@v1 |
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,20 @@ | ||
name: Release Request | ||
run-name: Release Request | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- closed | ||
- edited | ||
- labeled | ||
- opened | ||
- unlabeled | ||
branches: | ||
- master | ||
|
||
jobs: | ||
handle-release-request: | ||
name: ${{ github.event.action == 'closed' && 'Resolve ' || 'Verify ' }}Release Request | ||
permissions: | ||
contents: write | ||
uses: Arthri/release-request/.github/workflows/release-request.yml@v1 |
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,17 @@ | ||
name: New Reusable Workflow | ||
run-name: New Reusable Workflow | ||
|
||
on: | ||
workflow_call: | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
reusable-workflow: | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 1 | ||
|
||
steps: | ||
- run: echo Hello, World! |
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,9 @@ | ||
name: New Reusable Workflow | ||
run-name: New Reusable Workflow | ||
|
||
on: | ||
repository_dispatch: | ||
|
||
jobs: | ||
reusable-workflow: | ||
uses: ./.github/workflows/reusable-workflow.yml |
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: Update v<Major> Tag | ||
run-name: | | ||
Update major tag: ${{ github.event_name }}${{ github.event_name == 'push' && (github.event.created && ' created' || ' deleted') || '' }} ${{ github.event.ref }} | ||
on: | ||
delete: | ||
|
||
push: | ||
tags: | ||
- '**' | ||
|
||
jobs: | ||
update-tag: | ||
permissions: | ||
contents: write | ||
uses: Arthri/update-major-tag/.github/workflows/update-major-tag.yml@v1 |
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,2 @@ | ||
# Contributing | ||
See https://arthri.github.io/Belp/Contributing |
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,18 @@ | ||
MIT No Attribution | ||
|
||
Copyright 2023 Arthri | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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,22 @@ | ||
# reusable-workflow | ||
A reusable workflow for doing x, y, and z. | ||
|
||
## Installation | ||
Add a new workflow under `.github/workflows/` with the following contents. | ||
```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 | ||
|
||
``` | ||
|
||
## Usage | ||
1. Do this. | ||
1. Do that. | ||
1. This happens. |
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 @@ | ||
# 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. |