Skip to content

Commit 0d869be

Browse files
committed
chore: fix path of secure-git-push in deploy-apidocs.yml
1 parent fa57ec7 commit 0d869be

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/scripts/secure-git-push

100644100755
File mode changed.

.github/workflows/deploy-apidocs.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ on:
88
branches:
99
- 'develop'
1010
paths:
11-
- 'system/**'
11+
- '.github/scripts/secure-git-push'
1212
- '.github/workflows/deploy-apidocs.yml'
13+
- 'system/**'
1314

1415
permissions:
1516
contents: read
@@ -72,7 +73,11 @@ jobs:
7273
PUSH_TOKEN: ${{ secrets.ACCESS_TOKEN }}
7374
run: |
7475
git add .
76+
7577
if ! git diff-index --quiet HEAD; then
7678
git commit -m "Updated API for commit ${GITHUB_SHA}"
77-
bash ${GITHUB_WORKSPACE}/.github/scripts/secure-git-push https://github.com/codeigniter4/api.git HEAD:master
79+
bash "${GITHUB_WORKSPACE}/source/.github/scripts/secure-git-push" https://github.com/codeigniter4/api.git HEAD:master
80+
echo "API documentation deployed successfully."
81+
else
82+
echo "No changes to deploy."
7883
fi

0 commit comments

Comments
 (0)