-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (41 loc) · 1.38 KB
/
deploy-readme.yml
File metadata and controls
49 lines (41 loc) · 1.38 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
44
45
46
47
48
49
name: Deploy Readme
on:
workflow_run:
workflows: ["Deploy"]
types:
- completed
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
HYGRAPH_URL: ${{ vars.HYGRAPH_URL }}
GQL_API_GITHUB_TOKEN: ${{ secrets.GQL_API_GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '24.4.1'
cache: 'yarn'
- name: Install dependencies
run: yarn
- name: Generate readme
run: yarn workspace @teimurjan/profile-readme generate-readme
- name: Clone teimurjan repo
run: |
git clone https://x-access-token:${{ secrets.TEIMURJAN_REPO_TOKEN }}@github.com/teimurjan/teimurjan.git
- name: Copy readme to teimurjan
run: |
cp workspaces/profile-readme/README.md teimurjan/README.md
- name: Commit and push changes to teimurjan
working-directory: teimurjan
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add README.md
git commit -m "Update README.md content from teimurjan.github.io" || echo "No changes to commit"
git push origin HEAD:main