test grant action #2
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
name: new grant action | |
on: | |
issues: | |
types: [opened] | |
workflow_dispatch: | |
jobs: | |
grant: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Change README.md | |
run: | | |
time=$(date +%F -d "${{github.event.issue.updated_at}}") | |
echo "- [${{ github.event.issue.title}}](${{github.event.issue.html_url}}) $time" >> README.md | |
- name: Commit files | |
run: | | |
git config --local user.name ${{ github.actor }} | |
git config --local user.email "[email protected]" | |
git add README.md | |
git commit -m "submit new grant (Automated)" | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
force: true | |
- name: reply | |
run: gh issue comment $ISSUE --body "Welcome to submit the grant information" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
ISSUE: ${{ github.event.issue.html_url }} |