Skip to content

Commit 540445a

Browse files
authored
Tweak the first-interaction workflow (#7134)
* Fix wrong YAML multiline string format The `|` causes strings to retain newlines, which is a problem in GitHub-flavored Markdown because GitHub retains the line breaks. * Don't welcome Dependabot On new repos where Dependabot hasn't run yet, the workflow would needlessly greet Dependabot's first interaction. This now makes it check and not run if Dependabot is the actor.
1 parent b3af2ee commit 540445a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/first-interaction.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ permissions: read-all
1717

1818
jobs:
1919
welcome:
20+
if: github.actor != 'dependabot[bot]'
2021
name: Check for first interaction
2122
runs-on: ubuntu-24.04
2223
timeout-minutes: 10
@@ -31,7 +32,7 @@ jobs:
3132
uses: actions/first-interaction@d94ed8e502bc16de558688b9dd9a26261ae78a66 # v1.3.0
3233
with:
3334
repo-token: ${{secrets.GITHUB_TOKEN}}
34-
issue-message: |
35+
issue-message: >
3536
Hello and welcome, ${{github.actor}} 👋!
3637
3738
Thanks for filing your first issue with the ${{github.repository}}
@@ -52,7 +53,7 @@ jobs:
5253
any that look the same as this one. If you find a similar issue,
5354
consider closing this one; if you don't want to close this one, can
5455
you explain how this new one differs from the other one?
55-
pr-message: |
56+
pr-message: >
5657
Hello and welcome, ${{github.actor}} 👋!
5758
5859
Thanks for making your first pull request to the

0 commit comments

Comments
 (0)