Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit fa4dc6b

Browse files
authored
feat: Uses APIs (#29)
1 parent ce23b90 commit fa4dc6b

File tree

4 files changed

+476
-15
lines changed

4 files changed

+476
-15
lines changed

src/action.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use serde::Deserialize;
1212

1313
use crate::common::{
1414
expr::{BoE, LoE},
15-
Env, If,
15+
Env, If, Uses,
1616
};
1717

1818
/// A GitHub Actions action definition.
@@ -130,7 +130,8 @@ pub enum StepBody {
130130
/// A step that uses another GitHub Action.
131131
Uses {
132132
/// The GitHub Action being used.
133-
uses: String,
133+
#[serde(deserialize_with = "crate::common::step_uses")]
134+
uses: Uses,
134135

135136
/// Any inputs to the action being used.
136137
#[serde(default)]

0 commit comments

Comments
 (0)