newrelic-quickstarts
newrelic-quickstarts copied to clipboard
[Reusable Workflow] Create a reusable workflows for Download Artifact & Repo Setup
Description
Now that we have researched the benefits of reusable workflows we want to test this out on some higher priority items. We will create these at the repo level for now, and in the future discuss what workflows would benefit from living at the Org level. See some additional details on the benefits here.
Download Artifact Code
- name: Download artifact
uses: dawidd6/action-download-artifact@v2
with:
workflow: validation_gate.yml
run_id: ${{ github.event.workflow_run.id }}
- name: Get PR number
id: get_pr_number
run: |
export PR_NUMBER=$(cat artifact/pr_number.txt)
echo "::set-output name=pr-number::$PR_NUMBER"
We use Download Artifact
in:
Setup Repo Code
- name: Checkout repository
uses: actions/checkout@v2
with:
token: ${{ secrets.OPENSOURCE_BOT_TOKEN }}
ref: "main"
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 16
- name: Install dependencies
run: cd utils && yarn install
We use Download Artifact
in:
See instructions on how to create a Reusable Workflow here
Acceptance Criteria
- [ ] Create a reusable workflow for Download Artifact
- [ ] Create a reusable workflow for Setup Repo
- [ ] Replace these jobs in the relevant workflows
- [ ] Record any issues or pitfalls for future work
de-prioritized for a future sustaining epic.
Old issues will be closed after 105 days of inactivity. This issue has been quiet for 90 days and is being marked as stale. Reply here to keep this issue open.
This issue is being closed due to inactivity. Is this a mistake? Please re-open this issue or create a new one.