-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 1.48 KB
/
run-act.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
36
37
38
39
40
41
42
43
44
name: Run act
on:
workflow_dispatch:
push:
defaults:
run:
shell: bash
working-directory: ./
jobs:
check-actions:
runs-on: ubuntu-latest
timeout-minutes: 60
permissions:
id-token: write
contents: read
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Checkout devplatform-demo-sam-app repo
uses: actions/checkout@v4
with:
repository: 'govuk-one-login/devplatform-demo-sam-app'
ref: 'bau-spike-on-act'
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
token: ${{ secrets.DEMO_REPO_TOKEN }}
path: 'devplatform-demo-sam-app'
- name: update workflows
run: sed -i 's/devplatform-upload-action*/devplatform-upload-action@${{ github.sha }}/' ./devplatform-demo-sam-app/.github/workflows/sam-app-deploy-testing-upload-action.yml
- name: check workflow
run: cat ./devplatform-demo-sam-app/.github/workflows/sam-app-deploy-testing-upload-action.yml
- name: Install act
run: curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/nektos/act/master/install.sh | sudo bash
- name: Run act
run: ./bin/act -s ACT_BUCKET_NAME=${{ secrets.ACT_BUCKET_NAME }} -s SIGNING_PROFILE_NAME=${{ secrets.SIGNING_PROFILE_NAME }} -s ACT_ROLE_ARN=${{ secrets.ACT_ROLE_ARN }}