-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Push commits via API in github actions
- Loading branch information
1 parent
fa7bd8e
commit 62533d0
Showing
2 changed files
with
12 additions
and
31 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 |
---|---|---|
|
@@ -27,14 +27,7 @@ jobs: | |
working-directory: ./scripts | ||
run: python3 generateReleaseNotes.py | ||
|
||
- name: setup git config | ||
run: | | ||
# setup the username and email. | ||
git config user.name "GitHub Actions Bot" | ||
git config user.email "<[email protected]>" | ||
- name: Commit changes | ||
run: | | ||
# Commit and push | ||
git commit -am "Update release notes" | ||
git push | ||
uses: flex-development/[email protected] | ||
with: | ||
message: "Update release notes" |
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,24 +33,18 @@ jobs: | |
with: | ||
python-version: 3.12.1 | ||
|
||
- name: setup git config | ||
run: | | ||
# setup the username and email. | ||
git config user.name "GitHub Actions Bot" | ||
git config user.email "<[email protected]>" | ||
# override vName with new version | ||
- name: Create release branch | ||
run: git checkout -b release/${{ inputs.release_version_name }} | ||
|
||
- name: Run Python script to update release branch version | ||
run: python scripts/updateVersionName.py ${{ inputs.release_version_name }} | ||
|
||
- name: Push | ||
run: | | ||
git add . | ||
git commit -m "Update version to ${{ inputs.release_version_name }}" | ||
git push origin release/${{ inputs.release_version_name }} | ||
- name: Commit and Push Changes | ||
uses: flex-development/[email protected] | ||
with: | ||
message: 'Update version to ${{ inputs.release_version_name }}' | ||
ref: 'release/${{ inputs.release_version_name }}' | ||
|
||
update_version: | ||
# The type of runner that the job will run on | ||
|
@@ -65,23 +59,17 @@ jobs: | |
with: | ||
python-version: 3.12.1 | ||
|
||
- name: setup git config | ||
run: | | ||
# setup the username and email. | ||
git config user.name "GitHub Actions Bot" | ||
git config user.email "<[email protected]>" | ||
- name: Create release branch | ||
run: git checkout -b update_version_to${{ inputs.development_version_name }} | ||
|
||
- name: Run Python script to update base branch version | ||
run: python scripts/updateVersionName.py ${{ inputs.development_version_name }} | ||
|
||
- name: Commit and Push Changes | ||
run: | | ||
git add . | ||
git commit -m "Update version to ${{ inputs.development_version_name }}" | ||
git push origin update_version_to${{ inputs.development_version_name }} | ||
uses: flex-development/[email protected] | ||
with: | ||
message: 'Update version to ${{ inputs.development_version_name }}' | ||
ref: 'update_version_to${{ inputs.development_version_name }}' | ||
|
||
- name: create pull request | ||
run: gh pr create -B develop -H update_version_to${{ inputs.development_version_name }} --title 'Merge update_version_to${{ inputs.development_version_name }} into develop' --body 'Created by Github action' | ||
|