Skip to content

Commit 8ac57f9

Browse files
committed
ci:modified pipeline to support code move
1 parent fb1fb10 commit 8ac57f9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,21 @@ jobs:
1414
- name: Read App Info
1515
id: app
1616
run: |
17-
app_id=$(cat app.manifest | jq -r '.info.id.name')
18-
app_version=$(cat app.manifest | jq -r '.info.id.version')
17+
app_id=$(cat splunk_*/app.manifest | jq -r '.info.id.name')
18+
app_version=$(cat splunk_*/app.manifest | jq -r '.info.id.version')
1919
echo "name=${app_id}" >> $GITHUB_OUTPUT
2020
echo "version=${app_version}" >> $GITHUB_OUTPUT
21+
working-directory: ./packages
2122

2223
- name: Bundle app source
2324
env:
2425
APP_NAME: ${{ steps.app.outputs.name }}
25-
APP_VERSION: ${{ steps.app.outputs.vesion }}
26+
APP_VERSION: ${{ steps.app.outputs.version }}
2627
run: |
2728
# Exclude images from README file
2829
sed -i '/^!/d' README.md
29-
mkdir -p output/$APP_NAME
30-
rsync -av --exclude='.[^/]*' --exclude='output/' ./ output/$APP_NAME
31-
tar -C output -zcvf $APP_NAME-$APP_VERSION.tar.gz $APP_NAME/
30+
cp README.md packages/$APP_NAME
31+
tar -C packages -zcvf $APP_NAME-$APP_VERSION.tar.gz $APP_NAME/
3232
3333
- name: Upload artifact
3434
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)