newrelic-quickstarts icon indicating copy to clipboard operation
newrelic-quickstarts copied to clipboard

[Reusable Workflow] Create a reusable workflows for Download Artifact & Repo Setup

Open rudouglas opened this issue 3 years ago • 1 comments

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

rudouglas avatar Feb 18 '22 13:02 rudouglas

de-prioritized for a future sustaining epic.

jpvajda avatar Mar 21 '22 18:03 jpvajda

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.

github-actions[bot] avatar Dec 10 '22 01:12 github-actions[bot]

This issue is being closed due to inactivity. Is this a mistake? Please re-open this issue or create a new one.

github-actions[bot] avatar Mar 26 '23 01:03 github-actions[bot]