File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 5
5
name : CI
6
6
runs-on : ubuntu-latest
7
7
if : github.repository == 'rust-lang/team'
8
+ permissions :
9
+ id-token : write
8
10
steps :
9
11
10
12
- uses : actions/checkout@main
@@ -46,11 +48,17 @@ jobs:
46
48
GITHUB_DEPLOY_KEY : ${{ secrets.GITHUB_DEPLOY_KEY }}
47
49
if : github.event_name == 'push' && github.ref == 'refs/heads/master'
48
50
51
+ - name : Configure AWS credentials
52
+ if : github.event_name == 'push' && github.ref == 'refs/heads/master'
53
+ uses : aws-actions/configure-aws-credentials@v1
54
+ with :
55
+ role-to-assume : arn:aws:iam::890664054962:role/ci--rust-lang--team
56
+ aws-region : us-west-1
57
+
49
58
- name : Start the synchronization tool
59
+ if : github.event_name == 'push' && github.ref == 'refs/heads/master'
50
60
run : |
61
+ # Introduce some artifical delay to help github pages propagate.
62
+ sleep 60
51
63
aws --region us-west-1 lambda invoke --function-name start-sync-team output.json
52
64
cat output.json | python3 -m json.tool
53
- env :
54
- AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
55
- AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
56
- if : github.event_name == 'push' && github.ref == 'refs/heads/master'
You can’t perform that action at this time.
0 commit comments