Skip to content

Commit 11efe3f

Browse files
committed
change
Signed-off-by: Abhishek Kumar <[email protected]>
1 parent efc7aca commit 11efe3f

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,24 @@ jobs:
5252
run: |
5353
make run
5454
55+
- name: Fetch latest CloudStack release tag
56+
id: csrel
57+
run: |
58+
TAG=$(curl -s https://api.github.com/repos/apache/cloudstack/releases/latest | jq -r .tag_name)
59+
echo "tag=$TAG" >> $GITHUB_OUTPUT
60+
echo "Latest CloudStack tag: $TAG"
61+
62+
- name: Clone CloudStack at latest release
63+
run: |
64+
git clone --depth=1 --branch "${{ steps.csrel.outputs.tag }}" https://github.com/apache/cloudstack.git
65+
5566
- name: Set up JDK 11 + Maven cache
5667
uses: actions/setup-java@v4
5768
with:
5869
java-version: '11'
5970
distribution: 'temurin'
6071
cache: maven
72+
cache-dependency-path: cloudstack/pom.xml
6173

6274
- name: Set up Python 3.10
6375
uses: actions/setup-python@v5
@@ -84,17 +96,6 @@ jobs:
8496
sudo systemctl restart mysql
8597
sudo mysql -uroot -e "SELECT VERSION();"
8698
87-
- name: Fetch latest CloudStack release tag
88-
id: csrel
89-
run: |
90-
TAG=$(curl -s https://api.github.com/repos/apache/cloudstack/releases/latest | jq -r .tag_name)
91-
echo "tag=$TAG" >> $GITHUB_OUTPUT
92-
echo "Latest CloudStack tag: $TAG"
93-
94-
- name: Clone CloudStack at latest release
95-
run: |
96-
git clone --depth=1 --branch "${{ steps.csrel.outputs.tag }}" https://github.com/apache/cloudstack.git
97-
9899
- name: Build CloudStack (simulator)
99100
working-directory: cloudstack
100101
run: |

0 commit comments

Comments
 (0)