Added second workflow
This commit is contained in:
@@ -0,0 +1,24 @@
|
|||||||
|
name: Change Readme
|
||||||
|
run-name: Add to Readme if issue opens
|
||||||
|
on: issues
|
||||||
|
types: [opened]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
output-event-details:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Show Event Details
|
||||||
|
run: echo ${{toJSON(github.event)}}
|
||||||
|
add-to-readme:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: output-event-details
|
||||||
|
steps:
|
||||||
|
- name: Clone Repo
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Add to Readme
|
||||||
|
run: echo "This line is here because a new issue opened!\n" >> README.md
|
||||||
|
- name: Commit change
|
||||||
|
run: |
|
||||||
|
git add README.md
|
||||||
|
git commit -m "Added new line to README because new issue was created"
|
||||||
|
git push
|
||||||
Reference in New Issue
Block a user