Skip to content

Commit

Permalink
Had to update to remove the secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffpatton1971 committed Jan 22, 2025
1 parent f4fcb35 commit b5c7ddd
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
11 changes: 9 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,19 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

---

## [[0.0.3.0]](/~https://github.com/mod-posh/Post2Bluesky/releases/tag/v0.0.3.0) - 2025-01-21
## [[0.0.3.1]](/~https://github.com/mod-posh/Post2Bluesky/releases/tag/v0.0.3.1) - 2025-01-21

### Changes

Here’s a concise list of changes for your changelog:
- **Inputs Update**: Added `discordWebhook` as a required input to pass the Discord webhook URL securely.
- **Secret Handling**: Updated the script to use `${{ inputs.discordWebhook }}` instead of referencing `secrets.discordWebhook` directly.
- **Compatibility Fix**: Resolved an issue with composite actions by explicitly passing the webhook URL as an input.
- **Documentation Update**: Adjusted example workflows to reflect the new input structure for `discordWebhook`.

---

## [[0.0.3.0]](/~https://github.com/mod-posh/Post2Bluesky/releases/tag/v0.0.3.0) - 2025-01-21

### Changes

- **Inputs**: Replaced `source` and `projectName` inputs with a single `message` input for user-provided notification content.
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Notify Discord
uses: mod-posh/Post2Discord@v1
uses: mod-posh/Post2Discord@v0.0.3.0
with:
message: 'A new update has been released!'
secrets:
discordWebhook: ${{ secrets.DISCORD_WEBHOOK }}
```
Expand All @@ -70,7 +69,6 @@ jobs:
message: |
🚀 A new version of ${{ github.event.repository.name }} has been released!
Visit: ${{ github.event.repository.html_url }}
secrets:
discordWebhook: ${{ secrets.DISCORD_WEBHOOK }}
```
Expand Down
8 changes: 3 additions & 5 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'Post2Discord'
description: 'A GitHub Action to send notifications to a Discord channel via webhook'
description: 'A GitHub Action to send a notification to a Discord channel via webhook.'
author: 'Jeff Patton'

branding:
Expand All @@ -10,10 +10,8 @@ inputs:
message:
description: 'The message to post to Discord.'
required: true

secrets:
discordWebhook:
description: 'The webhook URL for the Discord channel where notifications will be sent.'
description: 'The Discord webhook URL to send the notification to.'
required: true

runs:
Expand All @@ -24,5 +22,5 @@ runs:

- name: Send Discord Notification
run: |
pwsh -File post2discord.ps1 -Message "${{ inputs.message }}" -DiscordWebhook "${{ secrets.discordWebhook }}"
pwsh -File post2discord.ps1 -Message "${{ inputs.message }}" -DiscordWebhook "${{ inputs.discordWebhook }}"
shell: pwsh

0 comments on commit b5c7ddd

Please sign in to comment.