-
Notifications
You must be signed in to change notification settings - Fork 177
42 lines (35 loc) · 1 KB
/
main.yaml
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
name: Create bookmarks
on:
push:
branches:
- main
permissions:
pull-requests: write
contents: write
repository-projects: write
jobs:
run-script-and-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: '${{github.ref_name}}'
- name: Set up Git
run: |
git config user.email "[email protected]"
git config user.name "DaShaun"
- name: Download Release File
run: |
curl -L -O https://github.com/spring-office-hours/mdtohtml-cli/releases/download/v0.0.9/mdtohtml-linux-x86_64
mv ./mdtohtml-linux-x86_64 ./mdtohtml
chmod +x ./mdtohtml
./mdtohtml
- name: Commit Changes
run: |
git add bookmarks.html
git commit -m "Workflow updated bookmarks.html"
- name: Push Changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}