Skip to content

Commit

Permalink
fix(notifier): update facebook post action (#408)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher authored Dec 7, 2024
1 parent 78ce053 commit cf813f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 38 deletions.
18 changes: 1 addition & 17 deletions .github/workflows/release-notifier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,22 +57,6 @@ jobs:
username: ${{ secrets.DISCORD_USERNAME }}
webhook: ${{ secrets.DISCORD_RELEASE_WEBHOOK }}

facebook_group:
if: >-
startsWith(github.repository, 'LizardByte/') &&
!github.event.release.prerelease &&
!github.event.release.draft
runs-on: ubuntu-latest
steps:
- name: facebook-post-action
uses: ReenigneArcher/facebook-post-action@v1
with:
page_id: ${{ secrets.FACEBOOK_GROUP_ID }}
access_token: ${{ secrets.FACEBOOK_ACCESS_TOKEN }}
message: |
${{ github.event.repository.name }} ${{ github.ref_name }} Released
url: ${{ github.event.release.html_url }}

facebook_page:
if: >-
startsWith(github.repository, 'LizardByte/') &&
Expand All @@ -81,7 +65,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: facebook-post-action
uses: ReenigneArcher/facebook-post-action@v1
uses: LizardByte/facebook-post-action@v2024.1207.15428
with:
page_id: ${{ secrets.FACEBOOK_PAGE_ID }}
access_token: ${{ secrets.FACEBOOK_ACCESS_TOKEN }}
Expand Down
22 changes: 1 addition & 21 deletions .github/workflows/social-post.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ on:
required: false
default: false
type: boolean
facebook_group:
description: 'Post to the Facebook group'
required: false
default: false
type: boolean
facebook_page:
description: 'Post to the Facebook page'
required: false
Expand Down Expand Up @@ -65,27 +60,12 @@ jobs:
username: ${{ secrets.DISCORD_USERNAME }}
webhook: ${{ secrets.DISCORD_RELEASE_WEBHOOK }}

facebook_group:
if: ${{ inputs.facebook_group }}
runs-on: ubuntu-latest
steps:
- name: facebook-post-action
uses: ReenigneArcher/facebook-post-action@v1
with:
page_id: ${{ secrets.FACEBOOK_GROUP_ID }}
access_token: ${{ secrets.FACEBOOK_ACCESS_TOKEN }}
message: |
${{ inputs.title }}
${{ inputs.body }}
url: ${{ inputs.url }}

facebook_page:
if: ${{ inputs.facebook_page }}
runs-on: ubuntu-latest
steps:
- name: facebook-post-action
uses: ReenigneArcher/facebook-post-action@v1
uses: LizardByte/facebook-post-action@v2024.1207.15428
with:
page_id: ${{ secrets.FACEBOOK_PAGE_ID }}
access_token: ${{ secrets.FACEBOOK_ACCESS_TOKEN }}
Expand Down

0 comments on commit cf813f3

Please sign in to comment.