Skip to content

Commit

Permalink
Simplified names of parameters from workflow_call
Browse files Browse the repository at this point in the history
  • Loading branch information
Azure-stars committed Oct 19, 2024
1 parent 8d0aa41 commit 3ae4e1e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ on:
pull_request:
workflow_call:
inputs:
CallerPackage:
package:
description: 'The package that triggers the workflow'
required: true
type: string
TopBranch:
ref:
description: 'The branch of the main repository'
required: false
default: 'main'
Expand All @@ -29,18 +29,18 @@ jobs:
RUSTUP_TOOLCHAIN: ${{ matrix.rust-toolchain }}
steps:
- uses: actions/checkout@v4
if: inputs.CallerPackage == ''
if: inputs.package == ''
- uses: actions/checkout@v4
if: inputs.CallerPackage != ''
if: inputs.package != ''
with:
repository: ${{ env.prj-repo }}
ref: ${{ inputs.TopBranch }}
ref: ${{ inputs.ref }}
- name: Patch for the commit to be tested
if: inputs.CallerPackage != ''
if: inputs.package != ''
run: |
cargo install dependencies-patch
dependencies-patch -c . \
-n ${{ inputs.CallerPackage }} \
-n ${{ inputs.package }} \
-t git --git-repo ${{ github.repository }} \
--commit ${{ github.sha }}
- uses: dtolnay/rust-toolchain@stable
Expand Down Expand Up @@ -78,18 +78,18 @@ jobs:
RUSTUP_TOOLCHAIN: ${{ matrix.rust-toolchain }}
steps:
- uses: actions/checkout@v4
if: inputs.CallerPackage == ''
if: inputs.package == ''
- uses: actions/checkout@v4
if: inputs.CallerPackage != ''
if: inputs.package != ''
with:
repository: ${{ env.prj-repo }}
ref: ${{ inputs.TopBranch }}
ref: ${{ inputs.ref }}
- name: Patch for the commit to be tested
if: inputs.CallerPackage != ''
if: inputs.package != ''
run: |
cargo install dependencies-patch
dependencies-patch -c . \
-n ${{ inputs.CallerPackage }} \
-n ${{ inputs.package }} \
-t git --git-repo ${{ github.repository }} \
--commit ${{ github.sha }}
- uses: dtolnay/rust-toolchain@stable
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ on:
pull_request:
workflow_call:
inputs:
CallerPackage:
package:
description: 'The package that triggers the workflow'
required: true
type: string
TopBranch:
ref:
description: 'The branch of the main repository'
required: false
default: 'main'
Expand All @@ -26,18 +26,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
if: inputs.CallerPackage == ''
if: inputs.package == ''
- uses: actions/checkout@v4
if: inputs.CallerPackage != ''
if: inputs.package != ''
with:
repository: ${{ env.prj-repo }}
ref: ${{ inputs.TopBranch }}
ref: ${{ inputs.ref }}
- name: Patch for the commit to be tested
if: inputs.CallerPackage != ''
if: inputs.package != ''
run: |
cargo install dependencies-patch
dependencies-patch -c . \
-n ${{ inputs.CallerPackage }} \
-n ${{ inputs.package }} \
-t git --git-repo ${{ github.repository }} \
--commit ${{ github.sha }}
- uses: dtolnay/rust-toolchain@stable
Expand All @@ -56,18 +56,18 @@ jobs:
arch: [x86_64, riscv64, aarch64]
steps:
- uses: actions/checkout@v4
if: inputs.CallerPackage == ''
if: inputs.package == ''
- uses: actions/checkout@v4
if: inputs.CallerPackage != ''
if: inputs.package != ''
with:
repository: ${{ env.prj-repo }}
ref: ${{ inputs.TopBranch }}
ref: ${{ inputs.ref }}
- name: Patch for the commit to be tested
if: inputs.CallerPackage != ''
if: inputs.package != ''
run: |
cargo install dependencies-patch
dependencies-patch -c . \
-n ${{ inputs.CallerPackage }} \
-n ${{ inputs.package }} \
-t git --git-repo ${{ github.repository }} \
--commit ${{ github.sha }}
- uses: dtolnay/rust-toolchain@stable
Expand Down

0 comments on commit 3ae4e1e

Please sign in to comment.