Skip to content

Commit 71556ed

Browse files
✨ Update GitHub Actions to use upload-artifact@v3.1.0 and improve RSS feed ID generation
1 parent 223cf8f commit 71556ed

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/analyze.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
run: ls -laR .next/analyze/base && npx -p nextjs-bundle-analysis compare
7474

7575
- name: Upload analysis comment
76-
uses: actions/upload-artifact@v3
76+
uses: actions/upload-artifact@v3.1.0
7777
with:
7878
name: analysis_comment.txt
7979
path: .next/analyze/__bundle_analysis_comment.txt
@@ -82,7 +82,7 @@ jobs:
8282
run: echo ${{ github.event.number }} > ./pr_number
8383

8484
- name: Upload PR number
85-
uses: actions/upload-artifact@v3
85+
uses: actions/upload-artifact@v3.1.0
8686
with:
8787
name: pr_number
8888
path: ./pr_number

src/utils/rss.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ exports.generateRssFeed = function () {
4040
const files = filesByOldest.reverse();
4141

4242
for (const filePath of files) {
43-
const id = path.basename(filePath);
43+
const id = filePath.split('/').slice(-1).join('');
4444
if (id !== 'index.md') {
4545
const content = fs.readFileSync(filePath, 'utf-8');
4646
const {data} = matter(content);

0 commit comments

Comments
 (0)