Skip to content

Commit

Permalink
Merge pull request #9 from urcomputeringpal/jnewland-patch-1
Browse files Browse the repository at this point in the history
Download default template
  • Loading branch information
jnewland authored Sep 6, 2023
2 parents d7005ea + 931075f commit 5d648d9
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/update-major.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Update Major Version Tag

on:
push:
tags:
- "v*"

jobs:
update-majorver:
name: Update Major Version Tag
runs-on: ubuntu-latest
steps:
- uses: nowactions/update-majorver@f2014bbbba95b635e990ce512c5653bd0f4753fb # v1.1.2
6 changes: 5 additions & 1 deletion .github/workflows/workflow-failure-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ jobs:
contents: read
issues: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
show-progress: false

- name: Find template
id: template
Expand All @@ -31,6 +33,8 @@ jobs:
if [ -f "$path" ]; then
echo "filename=$path" >> $GITHUB_OUTPUT
else
cd .github/workflows
wget https://raw.githubusercontent.com/urcomputeringpal/workflow-failure-issues/v0/.github/workflows/workflow-failure-issues-issue-template.md
echo "filename=.github/workflows/workflow-failure-issues-issue-template.md" >> $GITHUB_OUTPUT
fi
Expand Down
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@

## Setup

1. Copy [`.github/workflows/workflow-failure-issues-issue-template.md`](https://github.com/urcomputeringpal/workflow-failure-issues/blob/main/.github/workflows/workflow-failure-issues-issue-template.md) to your repo. Customize as needed.
1. Add the below workflow to your repo, maybe as `.github/workflows/workflow-failure-issues.yml`
Add the below workflow to your repo, maybe as `.github/workflows/workflow-failure-issues.yml`

```yaml
name: Workflow Failure Issues
Expand All @@ -16,10 +15,7 @@ on:
workflows:
# List your workflow's full name here
- Your critical workflow
# Add a template to customize the issue for each workflow.
# For .github/your-critical-workflow.yml:
# .github/your-critical-workflow-issue-template.md
types:
types:
- completed
jobs:
workflow-failure-issues:
Expand Down

0 comments on commit 5d648d9

Please sign in to comment.