Always comitting
This commit is contained in:
parent
bdf91412f2
commit
72714c743e
1 changed files with 6 additions and 11 deletions
|
|
@ -50,19 +50,14 @@ steps:
|
|||
- git add -f cv.pdf
|
||||
- git status
|
||||
- |-
|
||||
# Check if we have modifications to commit
|
||||
CHANGES=$(git status --porcelain | wc -l)
|
||||
# Show the status of files that are about to be created, updated or deleted
|
||||
git status
|
||||
|
||||
if [ "$CHANGES" -gt "0" ]; then
|
||||
# Show the status of files that are about to be created, updated or deleted
|
||||
git status
|
||||
# Commit all changes
|
||||
git commit -m "Built pdf for ${CI_COMMIT_SHA:0:8} [CI SKIP]"
|
||||
|
||||
# Commit all changes
|
||||
git commit -m "Built pdf for ${CI_COMMIT_SHA:0:8} [CI SKIP]"
|
||||
|
||||
# Update the repository and make sure to skip the pipeline create for this commit
|
||||
git push origin "${CI_REPO_DEFAULT_BRANCH}" -o ci.skip
|
||||
fi
|
||||
# Update the repository and make sure to skip the pipeline create for this commit
|
||||
git push origin "${CI_REPO_DEFAULT_BRANCH}" -o ci.skip
|
||||
environment:
|
||||
SSH_KEY:
|
||||
from_secret: SSH-KEY
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue