-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1371c04
commit f238723
Showing
1 changed file
with
3 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,21 +33,19 @@ jobs: | |
- run: | | ||
git add . | ||
if ! git diff --cached --quiet; then | ||
echo "FILES_TO_COMMIT=$(git ls-files --deleted --modified --added --others | ||
)" >> "$GITHUB_ENV" | ||
echo "GIT_BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> "$GITHUB_ENV" | ||
echo "FILES_TO_COMMIT=$(git diff --name-only --cached)" >> "$GITHUB_ENV" | ||
# git commit -m "Automated chart README.md update" | ||
# git push | ||
# else | ||
# echo "No changes to commit." | ||
fi | ||
- name: Commit file | ||
uses: chromeq/[email protected] | ||
if: ${{ env.FILES_TO_COMMIT != "" }} | ||
if: ${{ env.FILES_TO_COMMIT != '' }} | ||
with: | ||
files: ${{ env.FILES_TO_COMMIT }} | ||
commit-message: Automated chart README.md update | ||
ref: ${{ env.GIT_BRANCH }} | ||
ref: ${{ github.ref }} | ||
# # Commit all changed files back to the repository | ||
# - uses: stefanzweifel/git-auto-commit-action@v5 | ||
# with: | ||
|