Skip to content

Commit 53c1c17

Browse files
committed
docs: disable Github actions
1 parent df1fd1c commit 53c1c17

File tree

4 files changed

+121
-201
lines changed

4 files changed

+121
-201
lines changed

.github/workflows/e2e-tests.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.
Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,64 @@
1-
name: Format Markdown
1+
# name: Format Markdown
22

3-
on:
4-
push:
5-
branches:
6-
- '**'
7-
paths:
8-
- 'content/**/*.md'
3+
# on:
4+
# push:
5+
# branches:
6+
# - '**'
7+
# paths:
8+
# - 'content/**/*.md'
99

10-
permissions:
11-
contents: read
10+
# permissions:
11+
# contents: read
1212

13-
jobs:
14-
format-markdown:
15-
permissions:
16-
contents: write # for Git to git push
17-
runs-on: ubuntu-latest
13+
# jobs:
14+
# format-markdown:
15+
# permissions:
16+
# contents: write # for Git to git push
17+
# runs-on: ubuntu-latest
1818

19-
steps:
20-
- name: Harden the runner (Audit all outbound calls)
21-
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
22-
with:
23-
egress-policy: audit
19+
# steps:
20+
# - name: Harden the runner (Audit all outbound calls)
21+
# uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
22+
# with:
23+
# egress-policy: audit
2424

25-
- name: Checkout repository
26-
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
27-
with:
28-
fetch-depth: 2
29-
token: ${{ secrets.ACCESS_TOKEN }}
25+
# - name: Checkout repository
26+
# uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
27+
# with:
28+
# fetch-depth: 2
29+
# token: ${{ secrets.ACCESS_TOKEN }}
3030

31-
- name: Set up Node.js
32-
uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2
33-
with:
34-
node-version: 18
31+
# - name: Set up Node.js
32+
# uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2
33+
# with:
34+
# node-version: 18
3535

36-
- name: Install Prettier
37-
run: npm install prettier
36+
# - name: Install Prettier
37+
# run: npm install prettier
3838

39-
- name: Run Prettier
40-
run: npx prettier --write "content/**/*.md" --ignore-path .prettierignore
39+
# - name: Run Prettier
40+
# run: npx prettier --write "content/**/*.md" --ignore-path .prettierignore
4141

42-
- name: Commit changes
43-
run: |
44-
git config user.name "GitHub Action"
45-
git config user.email "[email protected]"
46-
export HUSKY=0
47-
git add -A
48-
# Check for meaningful changes before committing
49-
if [ -n "$(git status --porcelain)" ]; then
50-
# Commit only modified markdown files, not all changes
51-
git commit -m "chore: format content markdown files with Prettier"
52-
echo "Changes committed"
53-
else
54-
echo "No significant changes to commit"
55-
exit 0
56-
fi
42+
# - name: Commit changes
43+
# run: |
44+
# git config user.name "GitHub Action"
45+
# git config user.email "[email protected]"
46+
# export HUSKY=0
47+
# git add -A
48+
# # Check for meaningful changes before committing
49+
# if [ -n "$(git status --porcelain)" ]; then
50+
# # Commit only modified markdown files, not all changes
51+
# git commit -m "chore: format content markdown files with Prettier"
52+
# echo "Changes committed"
53+
# else
54+
# echo "No significant changes to commit"
55+
# exit 0
56+
# fi
5757

58-
- name: Pull latest changes
59-
run: git pull --rebase
58+
# - name: Pull latest changes
59+
# run: git pull --rebase
6060

61-
- name: Push changes
62-
run: git push
63-
env:
64-
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
61+
# - name: Push changes
62+
# run: git push
63+
# env:
64+
# ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}

.github/workflows/linkinator.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.
Lines changed: 68 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,80 @@
1-
name: Update Frontmatter
1+
# name: Update Frontmatter
22

3-
on:
4-
push:
5-
branches:
6-
- 'main'
7-
paths:
8-
- 'content/docs/**/*.md'
9-
- '!content/docs/README.md' # Exclude the README.md file
10-
- '!content/docs/shared-content/**/*.md' # Exclude the shared-content folder
3+
# on:
4+
# push:
5+
# branches:
6+
# - 'main'
7+
# paths:
8+
# - 'content/docs/**/*.md'
9+
# - '!content/docs/README.md' # Exclude the README.md file
10+
# - '!content/docs/shared-content/**/*.md' # Exclude the shared-content folder
1111

12-
permissions:
13-
contents: read
12+
# permissions:
13+
# contents: read
1414

15-
jobs:
16-
update-date:
17-
permissions:
18-
contents: write # for Git to git push
19-
runs-on: ubuntu-latest
20-
if: ${{ !contains(github.event.head_commit.message, 'auto-update') }}
15+
# jobs:
16+
# update-date:
17+
# permissions:
18+
# contents: write # for Git to git push
19+
# runs-on: ubuntu-latest
20+
# if: ${{ !contains(github.event.head_commit.message, 'auto-update') }}
2121

22-
steps:
23-
- name: Harden the runner (Audit all outbound calls)
24-
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
25-
with:
26-
egress-policy: audit
22+
# steps:
23+
# - name: Harden the runner (Audit all outbound calls)
24+
# uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
25+
# with:
26+
# egress-policy: audit
2727

28-
- name: Checkout repository
29-
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
30-
with:
31-
fetch-depth: 2
32-
token: ${{ secrets.ACCESS_TOKEN }}
33-
# ACCESS_TOKEN is a personal access token with repo scope
34-
# it needs to be updated in the repo secrets when it expires - Nov 10, 2024
28+
# - name: Checkout repository
29+
# uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
30+
# with:
31+
# fetch-depth: 2
32+
# token: ${{ secrets.ACCESS_TOKEN }}
33+
# # ACCESS_TOKEN is a personal access token with repo scope
34+
# # it needs to be updated in the repo secrets when it expires - Nov 10, 2024
3535

36-
- name: Set up Node.js
37-
uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2
38-
with:
39-
node-version: 18
36+
# - name: Set up Node.js
37+
# uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2.5.2
38+
# with:
39+
# node-version: 18
4040

41-
- name: Get list of modified files
42-
id: get-modified-files
43-
run: |
44-
modified_files=$(git diff --name-only HEAD^ HEAD | grep '^content/docs/.*\.md$' | xargs)
45-
echo "Modified files: $modified_files"
46-
if [ -z "$modified_files" ]; then
47-
echo "No modified Markdown files to update."
48-
exit 0
49-
fi
50-
echo "modified_files=$modified_files" >> $GITHUB_OUTPUT
41+
# - name: Get list of modified files
42+
# id: get-modified-files
43+
# run: |
44+
# modified_files=$(git diff --name-only HEAD^ HEAD | grep '^content/docs/.*\.md$' | xargs)
45+
# echo "Modified files: $modified_files"
46+
# if [ -z "$modified_files" ]; then
47+
# echo "No modified Markdown files to update."
48+
# exit 0
49+
# fi
50+
# echo "modified_files=$modified_files" >> $GITHUB_OUTPUT
5151

52-
- name: Install packages
53-
run: npm ci
52+
# - name: Install packages
53+
# run: npm ci
5454

55-
- name: Run update script
56-
run: node src/scripts/update-frontmatter.js ${{ steps.get-modified-files.outputs.modified_files }}
55+
# - name: Run update script
56+
# run: node src/scripts/update-frontmatter.js ${{ steps.get-modified-files.outputs.modified_files }}
5757

58-
- name: Commit changes
59-
run: |
60-
git config user.name "GitHub Action"
61-
git config user.email "[email protected]"
62-
export HUSKY=0
63-
git add -A
64-
# Check for meaningful changes before committing
65-
if [ -n "$(git status --porcelain)" ]; then
66-
# Commit only modified markdown files, not all changes
67-
git commit -m "chore: update frontmatter date (auto-update)" ${{ steps.get-modified-files.outputs.modified_files }}
68-
echo "Changes committed"
69-
else
70-
echo "No significant changes to commit"
71-
exit 0
72-
fi
58+
# - name: Commit changes
59+
# run: |
60+
# git config user.name "GitHub Action"
61+
# git config user.email "[email protected]"
62+
# export HUSKY=0
63+
# git add -A
64+
# # Check for meaningful changes before committing
65+
# if [ -n "$(git status --porcelain)" ]; then
66+
# # Commit only modified markdown files, not all changes
67+
# git commit -m "chore: update frontmatter date (auto-update)" ${{ steps.get-modified-files.outputs.modified_files }}
68+
# echo "Changes committed"
69+
# else
70+
# echo "No significant changes to commit"
71+
# exit 0
72+
# fi
7373

74-
- name: Pull latest changes
75-
run: git pull --rebase
74+
# - name: Pull latest changes
75+
# run: git pull --rebase
7676

77-
- name: Push changes
78-
run: git push origin HEAD:main
79-
env:
80-
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
77+
# - name: Push changes
78+
# run: git push origin HEAD:main
79+
# env:
80+
# ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}

0 commit comments

Comments
 (0)