Update feature-homepage-launch branch on Nov 19, 2024 #2036
Workflow file for this run
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: Add Pull Request Instructions | |
on: | |
pull_request: | |
types: [opened] | |
branches: | |
- 'gh-pages' | |
- 'feature-homepage-launch' | |
jobs: | |
Add-Pull-Request-Instructions: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
# Create the message to post | |
- name: Create Instruction | |
uses: actions/github-script@v7 | |
id: instruction | |
with: | |
script: | | |
const script = require('./github-actions/pr-instructions/create-instruction.js') | |
return script({g: github, c: context}).then((instruction) => { | |
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@v4 | |
with: | |
name: adding-pr-instructions-artifact | |
path: addingPrInstructions/artifact/ |