Skip to content

Commit 490c37b

Browse files
Merge pull request #83 from Githubguy132010/fix-github-plugin
Fix GitHub plugin TypeError in fail step
2 parents f9b886f + 7d5d6f7 commit 490c37b

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

.github/workflows/automated-tagging-versioning.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,9 @@ jobs:
3535
- name: Automated Tagging and Versioning
3636
env:
3737
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38-
run: semantic-release
38+
FAIL_COMMENT_NAME: "Automated Tagging and Versioning"
39+
FAIL_COMMENT_MESSAGE: "An error occurred during the automated tagging and versioning process."
40+
FAIL_COMMENT_CONTEXT: "GitHub Actions Workflow"
41+
FAIL_COMMENT_DETAILS: "Check the logs for more details."
42+
run: |
43+
semantic-release

.github/workflows/build.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,11 @@ jobs:
161161
id: create_release
162162
uses: softprops/action-gh-release@v2
163163
if: github.ref == 'refs/heads/main'
164+
env:
165+
FAIL_COMMENT_NAME: "Create Release"
166+
FAIL_COMMENT_MESSAGE: "An error occurred during the release creation process."
167+
FAIL_COMMENT_CONTEXT: "GitHub Actions Workflow"
168+
FAIL_COMMENT_DETAILS: "Check the logs for more details."
164169
with:
165170
tag_name: v${{ env.VERSION }}
166171
name: "Arch Linux No Beeps v${{ env.VERSION }}"

.github/workflows/generate-release-notes.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ jobs:
1515
- name: Generate Release Notes
1616
id: generate_release_notes
1717
uses: release-drafter/release-drafter@v5
18+
env:
19+
FAIL_COMMENT_NAME: "Generate Release Notes"
20+
FAIL_COMMENT_MESSAGE: "An error occurred during the release notes generation process."
21+
FAIL_COMMENT_CONTEXT: "GitHub Actions Workflow"
22+
FAIL_COMMENT_DETAILS: "Check the logs for more details."
1823
with:
1924
config-name: release-drafter.yml
2025

0 commit comments

Comments
 (0)