chore(repo): swap to artifacts rather than cache for issues data (#15912)
This commit is contained in:
parent
4e2b07e179
commit
117868ca3f
12
.github/workflows/issue-notifier.yml
vendored
12
.github/workflows/issue-notifier.yml
vendored
@ -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
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user