Skip to content

Commit c3db9df

Browse files
committed
fix(workflows): streamline preparation of wiki submodule branch
Signed-off-by: Felipe Sayão Lobato Abreu <github@mentordosnerds.com>
1 parent 3c0490b commit c3db9df

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/wiki.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,21 +44,21 @@ jobs:
4444
command: 'install'
4545
args: '--prefer-dist --no-progress --no-interaction --no-scripts'
4646

47+
- name: Prepare wiki submodule branch
48+
working-directory: .github/wiki
49+
run: |
50+
git fetch origin master
51+
git switch -C master --track origin/master || git switch master
52+
git reset --hard origin/master
53+
git clean -fd
54+
4755
- name: Create Docs Markdown
4856
uses: php-actions/composer@v6
4957
with:
5058
php_version: '8.3'
5159
command: 'dev-tools'
5260
args: 'wiki -- --target=.github/wiki'
5361

54-
- name: Prepare wiki submodule branch
55-
id: wiki_branch
56-
working-directory: .github/wiki
57-
run: |
58-
git fetch origin
59-
git checkout master || git checkout -b master
60-
echo "branch=master" >> "$GITHUB_OUTPUT"
61-
6262
- name: Commit & push wiki submodule
6363
id: wiki_commit
6464
uses: EndBug/add-and-commit@v10

0 commit comments

Comments
 (0)