Skip to content

Commit 5001f2f

Browse files
Update rss-notifier.yml
1 parent f31e1c5 commit 5001f2f

File tree

1 file changed

+6
-23
lines changed

1 file changed

+6
-23
lines changed

.github/workflows/rss-notifier.yml

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -58,38 +58,23 @@ jobs:
5858
uses: sarisia/actions-status-discord@v1
5959
with:
6060
avatar_url: ${{ secrets.ORG_LOGO_URL }}
61-
color: 0x00ff00
61+
color: 0x00ff00 # green
6262
nodetail: true
6363
nofail: false
6464
title: ${{ github.event.issue.title }}
6565
url: ${{ github.event.issue.body }}
6666
username: ${{ secrets.DISCORD_USERNAME }}
6767
webhook: ${{ secrets.DISCORD_ANNOUNCEMENT_WEBHOOK }}
6868

69-
fb_group:
70-
if: false && needs.authorize.outputs.authorized == 'true'
71-
needs: authorize
72-
outputs:
73-
post-url: "https://www.facebook.com/groups/lizardbyte"
74-
runs-on: ubuntu-latest
75-
steps:
76-
- name: facebook-post-action
77-
uses: ReenigneArcher/facebook-post-action@v1
78-
with:
79-
page_id: ${{ secrets.FACEBOOK_GROUP_ID }}
80-
access_token: ${{ secrets.FACEBOOK_ACCESS_TOKEN }}
81-
message: ${{ github.event.issue.title }}
82-
url: ${{ github.event.issue.body }}
83-
84-
fb_page:
69+
facebook:
8570
if: needs.authorize.outputs.authorized == 'true'
8671
needs: authorize
8772
outputs:
8873
post-url: "https://www.facebook.com/LizardByteDev"
8974
runs-on: ubuntu-latest
9075
steps:
9176
- name: facebook-post-action
92-
uses: ReenigneArcher/facebook-post-action@v1
77+
uses: LizardByte/facebook-post-action@v2024.1207.15428
9378
with:
9479
page_id: ${{ secrets.FACEBOOK_PAGE_ID }}
9580
access_token: ${{ secrets.FACEBOOK_ACCESS_TOKEN }}
@@ -138,22 +123,20 @@ jobs:
138123
needs:
139124
- authorize
140125
- discord
141-
- facebook_group
142-
- facebook_page
126+
- facebook
143127
- reddit
144128
- x
145129
runs-on: ubuntu-latest
146130
steps:
147131
- name: Close issue
148132
env:
149133
GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
134+
if: needs.authorize.outputs.authorized == 'true'
150135
run: |
151136
comment="| Job | Status | Post URL |\n"
152137
comment+="| --- | ------ | -------- |\n"
153-
comment+="| Authorize | ${{ needs.authorize.result }} | |\n"
154138
comment+="| Discord | ${{ needs.discord.result }} | ${{ needs.discord.outputs.post-url }} |\n"
155-
# comment+="| Facebook Group | ${{ needs.fb_group.result }} | ${{ needs.fb_group.outputs.post-url }} |\n"
156-
comment+="| Facebook Page | ${{ needs.fb_page.result }} | ${{ needs.fb_page.outputs.post-url }} |\n"
139+
comment+="| Facebook | ${{ needs.facebook.result }} | ${{ needs.facebook.outputs.post-url }} |\n"
157140
comment+="| Reddit | ${{ needs.reddit.result }} | ${{ needs.reddit.outputs.post-url }} |\n"
158141
comment+="| X | ${{ needs.x.result }} | ${{ needs.x.outputs.post-url }} |\n"
159142

0 commit comments

Comments
 (0)