-
Notifications
You must be signed in to change notification settings - Fork 257
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Abstarct an independent action to checkout and patch
- Loading branch information
1 parent
3ae4e1e
commit 5d9f19e
Showing
3 changed files
with
34 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Checkout repo and patch dependencies | ||
|
||
inputs: | ||
package: | ||
description: 'The package that triggers the external test' | ||
required: true | ||
type: string | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install patch tool | ||
if: inputs.package != '' | ||
shell: bash | ||
run: cargo install dependencies-patch | ||
- name: Patch for the commit to be tested | ||
if: inputs.package != '' | ||
shell: bash | ||
run: dependencies-patch -c . \ | ||
-n ${{ inputs.package }} \ | ||
-t git --git-repo ${{ github.repository }} \ | ||
--commit ${{ github.sha }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters