Skip to content

Commit

Permalink
ci:fixes to all workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
edro15 committed Sep 5, 2024
1 parent 41722c4 commit a0404c8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/appinspect.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,11 @@ jobs:
mkdir -p build
app_package=$(ls -1 *gz | xargs basename)
mv ${app_package} build/
ls -la build/
- name: Run AppInspect
uses: splunk/[email protected]
with:
username: ${{ secrets.SPLUNKBASE_USERNAME }}
password: ${{ secrets.SPLUNKBASE_PASSWORD }}
app_path: build/
includedTags: "cloud,self-service"
includedTags: "cloud"
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:

- name: Bundle App Source
run: |
sed -i '/^!/d' README.md
cp README.md packages/splunk-*/
mkdir -p build
tar -C packages -zcvf build/${{ steps.app.outputs.name }}-${{ steps.app.outputs.version }}.tgz ${{ steps.app.outputs.name }}/
Expand Down
18 changes: 10 additions & 8 deletions .github/workflows/manual-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,14 @@ jobs:
if: contains(['major', 'minor', 'patch'], ${{ github.event.inputs.bumpPart }})
steps:
- name: Checkout source
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Get app info
id: appinfo
run: |
APP_NAME=$(cat app.manifest | jq -r '.info.id.name' | tr _ - )
APP_NAME=$(cat splunk-*/app.manifest | jq -r '.info.id.name' | tr _ - )
echo "app_name=${APP_NAME}" >> $GITHUB_OUTPUT
working-directory: packages/

- name: Bump version and push tag
id: bumpversion
Expand All @@ -62,25 +63,26 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ needs.tag-version.outputs.new_sha }}
fetch-depth: 0

- name: Excluding images from README
run: |
sed -i '/^!/d' README.md
cp README.md packages/splunk-*/
- name: Bundle app source
run: |
mkdir dist
tar -zcvf dist/${{ needs.tag-version.outputs.app_name }}_v${{ needs.tag-version.outputs.version }}.tgz --exclude='.[^/]*' --exclude=./dist .
tar -C packages -zcvf dist/${{ needs.tag-version.outputs.app_name }}_v${{ needs.tag-version.outputs.version }}.tgz ${{ needs.tag-version.outputs.app_name }}/
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: app_tgz
path: dist/${{ needs.tag-version.outputs.app_name }}_v${{ needs.tag-version.outputs.version }}.tgz
path: dist/*

release:
name: Create Release
Expand All @@ -90,7 +92,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Fetch all tags
run: |
Expand Down Expand Up @@ -127,7 +129,7 @@ jobs:
prerelease: false

- name: Download artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: app_tgz

Expand Down

0 comments on commit a0404c8

Please sign in to comment.