Skip to content

Commit d720966

Browse files
authored
Merge pull request #20 from id-studiolab/test
Fix _config.yml
2 parents e8c8cd7 + b4c0118 commit d720966

2 files changed

Lines changed: 1 addition & 40 deletions

File tree

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +0,0 @@
1-
name: Protect branch-specific files
2-
on:
3-
pull_request:
4-
branches:
5-
- main
6-
types: [opened, synchronize, reopened]
7-
8-
permissions:
9-
contents: write
10-
pull-requests: write
11-
12-
jobs:
13-
restore-config:
14-
runs-on: ubuntu-latest
15-
steps:
16-
- uses: actions/checkout@v3
17-
with:
18-
ref: ${{ github.head_ref }}
19-
fetch-depth: 0
20-
21-
- name: Restore main's _config.yml
22-
run: |
23-
git config user.name "github-actions[bot]"
24-
git config user.email "github-actions[bot]@users.noreply.github.com"
25-
26-
# Get main's version of _config.yml
27-
git fetch origin main
28-
git show origin/main:_config.yml > /tmp/main_config.yml
29-
30-
# Compare with current version
31-
if ! cmp -s _config.yml /tmp/main_config.yml; then
32-
echo "Restoring main's _config.yml to PR branch"
33-
cp /tmp/main_config.yml _config.yml
34-
git add _config.yml
35-
git commit -m "chore: restore main's _config.yml [automated]"
36-
git push
37-
else
38-
echo "✓ _config.yml already matches main's version"
39-
fi

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
theme: just-the-docs
22

3-
baseurl: /Digital-Interfaces/test # For test branch: /repository-name/test
3+
baseurl: /Digital-Interfaces # For test branch: /repository-name/test
44

55
#theme: just-the-docs
66
title: Digital Interfaces

0 commit comments

Comments
 (0)