-
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.
Adds git auto commit and push action plugin
- Loading branch information
Showing
1 changed file
with
9 additions
and
11 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 |
---|---|---|
|
@@ -83,6 +83,10 @@ jobs: | |
update_version: | ||
runs-on: ubuntu-20.04 | ||
needs: check_package | ||
permissions: | ||
# Give the default GITHUB_TOKEN write permission to commit and push the | ||
# added or changed files to the repository. | ||
contents: write | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
@@ -95,17 +99,11 @@ jobs: | |
otp-version: '22.3.4.26' | ||
version-type: 'strict' | ||
- name: Update README.md and mix.exs | ||
run: | | ||
elixir ./scripts/update_version.exs | ||
git config user.name Lucasbot | ||
git config user.email [email protected] | ||
if [[ -n $(git diff --stat) ]] | ||
then | ||
git commit -am "Updated README.md and mix.exs to version $(cat version)." | ||
git push origin master | ||
else | ||
echo "No version change" | ||
fi | ||
run: elixir ./scripts/update_version.exs | ||
- uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: Updated README.md and mix.exs to version $(cat version). | ||
|
||
|
||
|
||
publish_package: | ||
|