|
1 |
| -# name: Readme |
| 1 | +name: Readme |
2 | 2 |
|
3 |
| -# on: |
4 |
| -# issues: |
5 |
| -# types: [opened, edited] |
| 3 | +on: |
| 4 | + issues: |
| 5 | + types: [opened, edited] |
6 | 6 |
|
7 |
| -# jobs: |
8 |
| -# readme: |
9 |
| -# runs-on: ubuntu-latest |
10 |
| -# steps: |
11 |
| -# - uses: actions/checkout@v2 |
12 |
| -# with: |
13 |
| -# ref: ${{ github.head_ref }} |
14 |
| -# - run: 'echo "${{ github.event.issue.body }}" > temp.txt' |
15 |
| -# - name: create-readme |
16 |
| -# if: ${{ startsWith(github.event.issue.title, 'Add handle') }} |
17 |
| -# uses: ./action |
18 |
| -# - run: rm temp.txt |
19 |
| -# - name: Create Pull Request |
20 |
| -# if: ${{ startsWith(github.event.issue.title, 'Add handle') }} |
21 |
| -# uses: peter-evans/create-pull-request@v2 |
22 |
| -# with: |
23 |
| -# commit-message: ${{ github.event.issue.title }} |
24 |
| -# title: ${{ github.event.issue.title }} |
25 |
| -# body: | |
26 |
| -# Closes #${{ github.event.issue.number }} |
27 |
| -# labels: automated pr |
28 |
| -# branch: add-new-developer-${{ github.event.issue.number }} |
| 7 | +jobs: |
| 8 | + readme: |
| 9 | + runs-on: ubuntu-latest |
| 10 | + steps: |
| 11 | + - uses: actions/checkout@v2 |
| 12 | + with: |
| 13 | + ref: ${{ github.head_ref }} |
| 14 | + - run: | |
| 15 | + TEXT_COPY="${{ github.event.issue.body }}" |
| 16 | + echo $TEXT_COPY > temp.txt" |
| 17 | + - name: create-readme |
| 18 | + if: ${{ startsWith(github.event.issue.title, 'Add handle') }} |
| 19 | + uses: ./action |
| 20 | + - run: rm temp.txt |
| 21 | + - name: Create Pull Request |
| 22 | + if: ${{ startsWith(github.event.issue.title, 'Add handle') }} |
| 23 | + uses: peter-evans/create-pull-request@v2 |
| 24 | + with: |
| 25 | + commit-message: ${{ github.event.issue.title }} |
| 26 | + title: ${{ github.event.issue.title }} |
| 27 | + body: | |
| 28 | + Closes #${{ github.event.issue.number }} |
| 29 | + labels: automated pr |
| 30 | + branch: add-new-developer-${{ github.event.issue.number }} |
0 commit comments