-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test committing changes as current actor
- Loading branch information
1 parent
b660181
commit 38abd3f
Showing
1 changed file
with
8 additions
and
6 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 |
---|---|---|
|
@@ -17,16 +17,17 @@ | |
name: "Run TODO to Issue" | ||
on: | ||
push: | ||
branches: | ||
- replace-with-master-when-fixed | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | ||
ref: ${{ github.head_ref }} | ||
- name: "TODO to Issue" | ||
uses: alstr/[email protected] | ||
with: | ||
|
@@ -35,14 +36,15 @@ jobs: | |
CLOSE_ISSUES: "true" | ||
- name: Set Git user | ||
run: | | ||
git config --global user.name "github-actions[bot]" | ||
git config --global user.email "github-actions[bot]@users.noreply.github.com" | ||
git config --global user.name ${{ github.actor }} | ||
# git config --global user.email "github-actions[bot]@users.noreply.github.com" | ||
- name: Commit and Push Changes | ||
run: | | ||
echo "// new change" >> ground/src/main/java/com/google/android/ground/GroundApplication.kt | ||
git add -A | ||
if [[ `git status --porcelain` ]]; then | ||
git commit -m "Automatically added GitHub issue links to TODOs" | ||
git push origin master | ||
git push origin ${{ github.head_ref }} | ||
else | ||
echo "No changes to commit" | ||
fi |