Skip to content

Commit

Permalink
Add random emojis
Browse files Browse the repository at this point in the history
  • Loading branch information
jd committed Dec 11, 2023
1 parent 96e16a4 commit 59e8113
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/create-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,17 @@ jobs:
- run: |
mkdir testbed
echo `uuidgen` > testbed/`uuidgen`
- name: Generate Random Animal Emoji
id: random_animal_emoji
run: |
EMOJI_LIST=('๐Ÿถ' '๐Ÿฑ' '๐Ÿญ' '๐Ÿน' '๐Ÿฐ' '๐ŸฆŠ' '๐Ÿป' '๐Ÿผ' '๐Ÿจ' '๐Ÿฏ' '๐Ÿฆ' '๐Ÿฎ' '๐Ÿท' '๐Ÿธ' '๐Ÿต' '๐Ÿฆ„' '๐Ÿž' '๐Ÿฆ€' '๐Ÿง' '๐Ÿฆ')
RANDOM_EMOJI=${EMOJI_LIST[$RANDOM % ${#EMOJI_LIST[@]}]}
echo "RANDOM_EMOJI=$RANDOM_EMOJI" >> $GITHUB_ENV
- name: Create a pull request (autoqueue)
if: ${{ inputs.autoqueue }}
uses: peter-evans/create-pull-request@v5
with:
title: "A pull request automatically merged"
title: "$RANDOM_EMOJI pull request (autoqueue)"
body: >
This is a test pull request.
Expand All @@ -33,7 +39,7 @@ jobs:
if: ${{ ! inputs.autoqueue }}
uses: peter-evans/create-pull-request@v5
with:
title: "A pull request"
title: "$RANDOM_EMOJI pull request"
body: >
This is a test pull request!
Expand Down

0 comments on commit 59e8113

Please sign in to comment.