-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (35 loc) · 1.3 KB
/
update-iambic-github-integrations.yaml
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
35
name: update-iambic-github-integrations
on:
workflow_dispatch:
jobs:
update-iambic-github-integrations:
if: ${{ github.repository == 'noqdev/iambic-templates-examples' }}
runs-on: ubuntu-latest
name: update-iambic-github-integrations
timeout-minutes: 60 # Setting this to 60 min for now. If this takes longer, it needs better performance improvement
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
permissions:
# These permissions are needed to interact with GitHub's OIDC Token endpoint.
id-token: write
contents: read
steps:
- uses: actions/checkout@v3
# we run on a managed runner, that's why we don't use virtualenv
- name: bootstrap
run: |
pip install boto3
- name: Configure AWS Credentials
if: ${{ github.repository == 'noqdev/iambic-templates-examples' }}
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: arn:aws:iam::580605962305:role/iambic_github_app_updater
aws-region: us-east-1
- name: run_updater
id: run_updater
run: |
echo $IAMBIC_TARGET_VERSION
python deployment/upgrade_iambic_version_for_lambda/upgrade_lambda.py
env:
IAMBIC_TARGET_VERSION: 0.11.71