update appinspect to run on push to main #51
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: App Inspect | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
appinspect: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 12.x | |
- uses: actions/cache@v1 | |
with: | |
path: node_modules | |
key: nodeModules-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
nodeModules- | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
env: | |
CI: true | |
- name: Build app package | |
run: | | |
yarn package | |
mv dist/*.spl dist/slack-alerts.spl | |
- uses: actions/upload-artifact@v1 | |
with: | |
name: app-package | |
path: dist/slack-alerts.spl | |
- uses: ./.github/actions/appinspect | |
with: | |
filePath: ./dist/slack-alerts.spl | |
splunkUser: ${{ secrets.SPLUNKBASE_USER }} | |
splunkPassword: ${{ secrets.SPLUNKBASE_PASSWORD }} | |
includedTags: cloud |