We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
secure-git-push
1 parent fa57ec7 commit 0d869beCopy full SHA for 0d869be
.github/scripts/secure-git-push
100644
100755
.github/workflows/deploy-apidocs.yml
@@ -8,8 +8,9 @@ on:
8
branches:
9
- 'develop'
10
paths:
11
- - 'system/**'
+ - '.github/scripts/secure-git-push'
12
- '.github/workflows/deploy-apidocs.yml'
13
+ - 'system/**'
14
15
permissions:
16
contents: read
@@ -72,7 +73,11 @@ jobs:
72
73
PUSH_TOKEN: ${{ secrets.ACCESS_TOKEN }}
74
run: |
75
git add .
76
+
77
if ! git diff-index --quiet HEAD; then
78
git commit -m "Updated API for commit ${GITHUB_SHA}"
- 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."
83
fi
0 commit comments