chore(repo): swap to artifacts rather than cache for issues data (#15912)

This commit is contained in:
Craigory Coppola 2023-03-27 17:10:56 -04:00 committed by GitHub
parent 4e2b07e179
commit 117868ca3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 5 deletions

View File

@ -37,11 +37,10 @@ jobs:
- name: Install packages
run: yarn install --prefer-offline --frozen-lockfile --non-interactive
- name: Retrieve Previous Results
uses: actions/cache@v3
- uses: actions/download-artifact@v3
with:
path: scripts/issues-scraper/data.json
key: 'always-hit'
name: cached-issue-data
path: ./scripts/isses-scraper/cached
- name: Collect Issue Data
id: collect
@ -49,6 +48,11 @@ jobs:
env:
GITHUB_TOKEN: ${{ github.token }}
- uses: actions/upload-artifact@v3
with:
name: cached-issue-data
path: ./scripts/issues-scraper/cached/data.json
- name: Send GitHub Action trigger data to Slack workflow
id: slack
uses: slackapi/slack-github-action@v1.23.0

View File

@ -6,7 +6,7 @@ import { formatGhReport, getSlackMessageJson } from './format-slack-message';
import { setOutput } from '@actions/core';
import isCI from 'is-ci';
const CACHE_FILE = join(__dirname, 'data.json');
const CACHE_FILE = join(__dirname, 'cached', 'data.json');
async function main() {
const currentData = await scrapeIssues();