-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) · 1.01 KB
/
Copy pathexample.yml
File metadata and controls
34 lines (34 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Example workflow
on:
workflow_dispatch
jobs:
run-demo-app:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: 'recursive'
token: ${{ secrets.GITHUB }}
- name: Set up Python 3.7.8
uses: actions/setup-python@v2
with:
python-version: '3.7.8'
- name: Run script that echo outputs
run: python main.py
upload-logs-to-elastic:
runs-on: ubuntu-latest
needs: run-demo-app
if: always()
steps:
- name: Upload GitHub Action workflows logs to elastic
uses: shahargl/upload-github-workflow-logs-to-elastic@1.0.13
with:
github_token: "${{ secrets.GITHUB }}"
github_org: "ameerdev21"
github_repository: "python-app"
github_run_id: "${{ github.run_id }}"
elastic_host: "${{ secrets.ELASTIC_HOST }}"
elastic_api_key_id: "${{ secrets.ELASTIC_KEY_ID }}"
elastic_api_key: "${{ secrets.ELASTIC_API_KEY }}"
elastic_index: "ci-cd"