-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdelete-md-on-issue-deletion.yml
More file actions
43 lines (35 loc) · 1.06 KB
/
delete-md-on-issue-deletion.yml
File metadata and controls
43 lines (35 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Delete the markdown file when the issue is deleted.
on:
issues:
types: [deleted]
env:
CONTENT_TITLE: ${{ github.event.issue.title }}
CONTENT_BODY: ${{ github.event.issue.body }}
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT_TOKEN }}
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: yarn install --immutable
- name: Delete markdown file
run: |
rm -rf "contents/${CONTENT_TITLE}"
- name: Push changes
run: |
git config --local user.email "dlwoabsdk@gmail.com"
git config --local user.name hustle-dev
git add .
git commit -m "docs: 문서가 삭제되었습니다."
git push
- name: Deploy
run: |
git remote set-url origin https://x-access-token:${{ secrets.PAT_TOKEN }}@github.com/${{ github.repository }}
yarn deploy