Skip to content

Commit e84c149

Browse files
committed
Update workflow
1 parent 42279b0 commit e84c149

File tree

2 files changed

+18
-45
lines changed

2 files changed

+18
-45
lines changed

.github/workflows/announce-new-release-discord.yml

Lines changed: 11 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,14 @@ on:
55
- "published"
66
jobs:
77
announce-new-release-discord:
8-
name: "Announce New Release - Discord"
9-
runs-on: "ubuntu-latest"
10-
steps:
11-
- uses: "hugoalh/[email protected]"
12-
with:
13-
key: "${{secrets.DISCORD_HXHS_PROJECTNEWRELEASEANNOUNCER_WEBHOOK}}"
14-
payload: |
15-
embeds:
16-
- title: "GitHub Actions Toolkit (PowerShell)"
17-
description: |
18-
> ${{github.event.repository.description}}
19-
20-
Version ${{github.event.release.name}} (${{github.event.release.tag_name}}) just released!
21-
timestamp: "${{github.event.release.published_at}}"
22-
color: "#0072C6"
23-
thumbnail:
24-
url: "https://i.imgur.com/OhKCMwk.png"
25-
author:
26-
name: "${{github.event.release.author.login}}"
27-
url: "${{github.event.release.author.html_url}}"
28-
icon_url: "${{github.event.release.author.avatar_url}}"
29-
fields:
30-
- name: "Repositories"
31-
value: |
32-
**- GitHub (${{github.event.repository.full_name}}):** ${{github.event.repository.html_url}}
33-
inline: false
34-
- name: "Releases"
35-
value: |
36-
**- GitHub (& Changelog):** ${{github.event.release.html_url}}
37-
**- PowerShell Gallery:** https://www.powershellgallery.com/packages/hugoalh.GitHubActionsToolkit
38-
inline: false
39-
wait: "true"
8+
name: "Announce New Release - Discord (Reusable Workflow)"
9+
uses: "hugoalh/hugoalh/.github/workflows/announce-new-release-discord.yml@main"
10+
with:
11+
name: "GitHub Actions Toolkit (PowerShell)"
12+
color: "#0072C6"
13+
thumbnail: "https://i.imgur.com/OhKCMwk.png"
14+
releases: |
15+
**- GitHub (& Changelog):** ${{github.event.release.html_url}}
16+
**- PowerShell Gallery:** https://www.powershellgallery.com/packages/hugoalh.GitHubActionsToolkit
17+
secrets:
18+
DISCORD_WEBHOOK: "${{secrets.DISCORD_HXHS_PROJECTNEWRELEASEANNOUNCER_WEBHOOK}}"

.github/workflows/scan-virus.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,14 @@ on:
1414
workflow_dispatch:
1515
inputs:
1616
git_deep:
17-
description: "{boolean} Scan deeper for Git repository."
17+
type: "choice"
18+
description: "{Boolean} Scan deeper for Git repository."
1819
required: false
1920
default: "true"
21+
options:
22+
- "true"
23+
- "false"
2024
jobs:
2125
scan-virus:
22-
name: "Scan Virus"
23-
runs-on: "ubuntu-latest"
24-
if: "${{!(github.event_name == 'pull_request' && startsWith(github.event.pull_request.head.label, format('{0}:', github.repository_owner)))}}"
25-
steps:
26-
- name: "Checkout Repository"
27-
uses: "actions/[email protected]"
28-
with:
29-
fetch-depth: 0
30-
- name: "Scan Repository"
31-
uses: "hugoalh/[email protected]"
32-
with:
33-
git_deep: "${{github.event.inputs.git_deep || 'false'}}"
26+
name: "Scan Virus (Reusable Workflow)"
27+
uses: "hugoalh/hugoalh/.github/workflows/scan-virus.yml@main"

0 commit comments

Comments
 (0)