mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
Use more maintained and capable Discord GHA
This commit is contained in:
parent
66cd7e7e79
commit
34f3ff3b26
1 changed files with 5 additions and 8 deletions
13
.github/workflows/cd.yml
vendored
13
.github/workflows/cd.yml
vendored
|
@ -42,17 +42,14 @@ jobs:
|
||||||
needs: [pkg, ingest]
|
needs: [pkg, ingest]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: make embeds
|
- name: make paylaod
|
||||||
id: make-embeds
|
|
||||||
run: |
|
run: |
|
||||||
RV=""
|
RV=""
|
||||||
for x in ${{ needs.ingest.outputs.projects }}; do
|
for x in ${{ needs.ingest.outputs.projects }}; do
|
||||||
RV="${RV:+$RV,} {\"title\": \"$x\", \"url\": \"https://pkgx.dev/pkgs/$x\"}"
|
RV="${RV:+$RV,} {\"title\": \"$x\", \"url\": \"https://pkgx.dev/pkgs/$x\"}"
|
||||||
done
|
done
|
||||||
echo "json={\"embeds\": [$RV]}" >> $GITHUB_OUTPUT
|
echo "{\"embeds\": [$RV], \"content\": \"new pkgs\"}" >> payload.json
|
||||||
- uses: Ilshidur/action-discord@0.3.2
|
- uses: tsickert/discord-webhook@v5.4.0
|
||||||
env:
|
|
||||||
DISCORD_EMBEDS: ${{ steps.make-embeds.outputs.json }}
|
|
||||||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
|
||||||
with:
|
with:
|
||||||
args: new pkgs
|
webhook-url: ${{ secrets.DISCORD_WEBHOOK }}
|
||||||
|
raw-data: ./payload.json
|
||||||
|
|
Loading…
Reference in a new issue