Skip to content

Commit

Permalink
Test committing changes as current actor
Browse files Browse the repository at this point in the history
  • Loading branch information
shobhitagarwal1612 committed Dec 18, 2024
1 parent b660181 commit 38abd3f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/todo-to-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

0 comments on commit 38abd3f

Please sign in to comment.