Skip to content

Commit 4fcacd0

Browse files
committed
modified: .github/actions/recent-posts/action.yml
- Added `args` to `runs` config. modified: .github/workflows/recent-posts.yml - Added `with` to second `step` to get input arg `num-entries`.
1 parent fb4cb60 commit 4fcacd0

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed
Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
name: "Recent Posts"
22
author: "Ian Thompson"
33
description: "Get the most recent blog post metadata."
4-
runs:
5-
using: "docker"
6-
image: "Dockerfile"
7-
84
inputs:
95
num-entries:
106
description: "Number of blog entries to show"
117
required: false
12-
default: 5
8+
default: 5
9+
10+
runs:
11+
using: "docker"
12+
image: "Dockerfile"
13+
args:
14+
- ${{ inputs.num-entries }}

.github/workflows/recent-posts.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,15 @@ jobs:
1313
uses: actions/checkout@v4
1414

1515
- name: Recent post action
16-
uses: "it176131/it176131.github.io/.github/actions/recent-posts@recent-posts"
16+
# uses: "it176131/it176131.github.io/.github/actions/recent-posts@recent-posts"
17+
uses: "./.github/actions/recent-posts"
18+
with:
19+
num-entries: 5
1720

1821
- name: Commit README
1922
run: |
2023
git config user.email github-actions@github.com
2124
git config user.name github-actions
2225
git add README.md
2326
git commit -m "Synced and updated with most recent it176131.github.io blog post"
24-
git push
27+
# git push

0 commit comments

Comments
 (0)