Skip to content

Commit

Permalink
feat: adding commit to new repo
Browse files Browse the repository at this point in the history
  • Loading branch information
joshjohanning authored Nov 22, 2024
1 parent 70d0e0e commit 2ebc495
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/new-repo-create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,25 @@ jobs:
allow_update_branch: true,
})
# adding a commit in the newly created repo
- uses: actions/checkout@v4
with:
token: ${{ steps.app-token.outputs.token }}
repository: ${{ github.owner}}/${{ env.REPO_NAME }}
path: ${{ env.REPO_NAME }}
- name: push to git repo
run: |
cd ${{ env.REPO_NAME }}
git config --global user.name 'josh-issueops-bot[bot]'
git config --global user.email '149130343+josh-issueops-bot[bot]@users.noreply.github.com'
# Get the current date
current_date=$(date)
# Append the current date to the README.md file
echo -e "\n## Created date: $current_date" >> README.md
git add .
git commit -m "ci: updating readme"
git push
- name: Add created label and close issue
if: ${{ success() }}
uses: actions/github-script@v6
Expand Down

0 comments on commit 2ebc495

Please sign in to comment.