Skip to content

Commit

Permalink
strange lost ctx
Browse files Browse the repository at this point in the history
  • Loading branch information
nkrusch committed Sep 3, 2024
1 parent e86dbac commit dc849a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/utils/embed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ COLORS=("" "26367" "16750848" "65433" "10027263")
MAT_ID="${ARGV[0]}"
PR_NUM="${ARGV[1]}"
PR_URL="${ARGV[2]}"
TITLE=$(bash .github/utils/title.sh)
ABSTR=$(bash .github/utils/abs.sh)
TITLE="${ARGV[3]}"
ABSTR="${ARGV[4]}"
COLOR=${COLORS[MAT_ID]}

# https://birdie0.github.io/discord-webhooks-guide/discord_webhook.html
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/vote.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
run: |
echo "body=\"$(bash .github/utils/pr.sh)\"" >> $GITHUB_OUTPUT
echo "title=$(bash .github/utils/title.sh)" >> $GITHUB_OUTPUT
echo "abs=$(bash .github/utils/abs.sh)" >> $GITHUB_OUTPUT
- name: 🔖️ Create a pull request
uses: peter-evans/create-pull-request@v6
id: pr
Expand All @@ -49,7 +50,9 @@ jobs:
I=${{ matrix.options }}
P=${{ steps.pr.outputs.pull-request-number }}
U=${{ steps.pr.outputs.pull-request-url }}
echo "data=\"$(bash .github/utils/embed.sh $I $P $U)\"" >> $GITHUB_OUTPUT
T=${{ steps.vars.outputs.title }}
A=${{ steps.vars.outputs.abs }}
echo "data=\"$(bash .github/utils/embed.sh $I $P $U $T $A)\"" >> $GITHUB_OUTPUT
id: embed
- name: 🗳️ Post vote option to Discord
uses: Ilshidur/action-discord@master
Expand Down

0 comments on commit dc849a1

Please sign in to comment.