Skip to content

Commit

Permalink
Use builtin action for clone aspnet repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Lykoi18 committed Sep 11, 2023
1 parent 2f49b89 commit ced8995
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
18 changes: 18 additions & 0 deletions .github/actions/clone-aspnet-repo/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: 'Clone aspnet private repo'
description: 'Clone aspnet private repo'

inputs:
version:
description: 'Devextreme version'
required: true

runs:
using: composite
steps:
- name: Clone devextreme-aspnet repo
uses: actions/checkout@v4
with:
repository: DevExpress/devextreme-aspnet
ref: ${{ inputs.version }}
path: devextreme-aspnet
token: ${{ secrets.ASPNET_PAT }}
7 changes: 2 additions & 5 deletions .github/workflows/build-aspnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,9 @@ jobs:
echo "version=$env:version" >> $GITHUB_OUTPUT
- name: Clone devextreme-aspnet repo
uses: actions/checkout@v4
uses: ./.github/actions/clone-aspnet-repo
with:
repository: DevExpress/devextreme-aspnet
ref: ${{ steps.get_version.outputs.version }}
path: devextreme-aspnet
token: ${{ secrets.ASPNET_PAT }}
version: ${{ steps.get_version.outputs.version }}

- name: Restore npm cache
uses: actions/cache@v3
Expand Down

0 comments on commit ced8995

Please sign in to comment.