generated from hackforla/.github-hackforla-base-repo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 79
34 lines (30 loc) · 1.05 KB
/
pr-instructions.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Add Pull Request Instructions
on:
pull_request:
types: [opened]
branches:
- 'development'
jobs:
Add-Pull-Request-Instructions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Create the message to post
- name: Create Instruction
uses: actions/github-script@v4
id: instruction
with:
script: |
const script = require('./github-actions/pr-instructions/create-instruction.js')
const instruction = script({g: github, c: context})
return JSON.stringify({ instruction: instruction, issueNum: context.payload.number })
# Create an artifact with the message
- name: Create Artifacts
run: |
mkdir -p addingPrInstructions/artifact
echo ${{ steps.instruction.outputs.result }} > addingPrInstructions/artifact/artifact.txt
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: adding-pr-instructions-artifact
path: addingPrInstructions/artifact/