Skip to content

Commit

Permalink
ci(github-actions): change another actions
Browse files Browse the repository at this point in the history
  • Loading branch information
PunGrumpy committed Nov 16, 2023
1 parent 30f83da commit 14f4abe
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 35 deletions.
44 changes: 15 additions & 29 deletions .github/ISSUE_TEMPLATE/failure_report.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,20 @@
## `🚨` Build Failure Report

### Summary

The build process failed due to unexpected issues.

### Job Information

- **Job Name:** Handler
- **Failed Step(s):**
- Cache ❌
- Archive ❌

### Error Details
---
title: Build Failure Report
assignees: github-actions[bot], PunGrumpy
labels: build-failure, bug
---

Describe the errors encountered in detail. Include any relevant logs or error messages here.

### Possible Causes

- Changes in dependencies
- Recent code modifications
- Configuration issues

### Steps to Reproduce

If applicable, provide steps to reproduce the issue or the conditions that led to the failure.
## `🚨` Build Failure Report

### Proposed Solutions
### `📜` Logs

Suggest potential solutions or troubleshooting steps that could resolve the problem.
{{ env.LOGS }}

### Additional Information
## `📝` Notes

Any other relevant details or context about the failure.
| Note | Description |
| ------ | ---------------- |
| Status | {{ env.STATUS }} |
| Job | {{ env.JOB }} |
| Build | {{ env.BUILD }} |
| Commit | {{ env.COMMIT }} |
23 changes: 17 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,17 +111,28 @@ jobs:
restore-keys: |
${{ runner.os }}-dullahan.nvim-${{ hashFiles('**/init.lua') }}
- name: 🎁 Archive
id: upload_artifact
uses: actions/upload-artifact@v2
with:
name: logs
path: |
~/.cache/nvim
~/.local/share/nvim/site/pack/packer
- name: 📮 Send issue
uses: peter-evans/create-issue-from-file@v4
uses: JasonEtco/create-an-issue@v2
id: send_issue
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LOGS: ${{ steps.upload_artifact.outputs.artifact_paths }}
NOTES: ${{ job.status }}
JOB: ${{ github.job }}
BUILD: ${{ github.run_number }}
COMMIT: ${{ github.sha }}
with:
title: 🚨 Build failed
content-filepath: .github/ISSUE_TEMPLATE/failure_report.md
labels: build
assignees: ${{ github.actor }}
token: ${{ secrets.GITHUB_TOKEN }}
filename: .github/ISSUE_TEMPLATE/failure_report.md
assignees: github-actions[bot], ${{ github.actor }}
update_existing: true
- name: 📤 Output
run: |
echo "🐞 Issue created at ${{ steps.send_issue.outputs.url }}"
echo "🔢 Issue number is ${{ steps.send_issue.outputs.number }}"

0 comments on commit 14f4abe

Please sign in to comment.