Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit a7d792a

Browse files
authored
fix: comment with conditional workflow (#3207)
* attempt fix gh action * typo * typo * add manual trigger * remove manual trigger * add manual trigger * update to use PAT * conditional actions * fix conditional * fix conditional * simplify workflow * clean up unused stage
1 parent ef26814 commit a7d792a

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed
+9-10
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
name: comment-on-pull-request
2-
on:
3-
pull_request:
4-
permissions:
5-
pull-requests: write
2+
on:
3+
pull_request_target:
4+
types: [opened]
5+
permissions:
6+
pull-requests: write
67
issues: write
78
jobs:
89
comment-on-pr:
910
runs-on: ubuntu-latest
1011
steps:
11-
- name: Checkout
12-
uses: actions/checkout@v4
13-
14-
- name: Comment PR
12+
- name: Comment on PR
1513
uses: thollander/actions-comment-pull-request@v2
1614
with:
17-
message: |
18-
This repository is for **practice only** and therefore it will not count towards hacktoberfest.
15+
message: "This repository is for **practice only** and therefore it will not count towards hacktoberfest."
1916
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
mode: upsert
18+
create_if_not_exists: true

0 commit comments

Comments
 (0)