Skip to content

Commit e1e94da

Browse files
committed
Make environmental variables applied to config as priority
1 parent b878cb3 commit e1e94da

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

.github/workflows/test.yaml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
6+
permissions:
7+
id-token: write
8+
contents: read
9+
10+
jobs:
11+
test:
12+
name: Test
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Configure AWS Credentials
17+
uses: aws-actions/configure-aws-credentials@v4
18+
with:
19+
aws-region: ap-northeast-1
20+
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/${{ secrets.AWS_ASSUME_ROLE_NAME }}
21+
- name: Install requirments
22+
run: |
23+
pip install -r requirements.txt
24+
- name: Report usage
25+
run: |
26+
python report.py --use-aws-default-session
27+
env:
28+
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
29+
ZULIP_SITE: ${{ secrets.ZULIP_SITE }}
30+
ZULIP_EMAIL: ${{ secrets.ZULIP_EMAIL }}
31+
ZULIP_API_KEY: ${{ secrets.ZULIP_API_KEY }}
32+
ZULIP_TYPE: ${{ secrets.ZULIP_TYPE }}
33+
ZULIP_TO: ${{ secrets.ZULIP_TO }}
34+
ZULIP_TOPIC: ${{ secrets.ZULIP_TOPIC }}
35+
ZULIP_MESSAGE: ${{ secrets.ZULIP_MESSAGE }}

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Programatically send AWS usage report to Zulip.
4747
4. Run pip install and run report.py.
4848

4949
```console
50-
$ python3 -m pip install -r requirments.txt
50+
$ python3 -m pip install -r requirements.txt
5151
$ python3 report.py
5252
```
5353

0 commit comments

Comments
 (0)