Skip to content

Commit

Permalink
update github-repository-commit.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tsubakimoto committed Jul 30, 2023
1 parent 97561c4 commit 6901519
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/github-repository-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,21 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Edit a file
if: github.event.inputs.edit
run: |
echo -e "\n" >> README.md
date >> README.md
- name: Prepare a branch, and file
id: commit-step
run: |
if "${{ github.event.inputs.edit }}"; then
echo -e "\n" >> README.md
date >> README.md
fi
git checkout -b $HEAD_BRANCH
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
git add .
git commit -m "Add date to README.md"
git push --set-upstream origin $HEAD_BRANCH
# git checkout main
git checkout $BASE_BRANCH
echo "base-branch-name: $BASE_BRANCH"
echo "base-branch-name=$BASE_BRANCH" >> $GITHUB_OUTPUT
echo "head-branch-name: $HEAD_BRANCH"
Expand Down

0 comments on commit 6901519

Please sign in to comment.