Skip to content

Commit a4962f2

Browse files
ci: fix role-to-assume if statement for cardano-services CI
1 parent af12043 commit a4962f2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/cardano-services.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- uses: aws-actions/[email protected]
1111
with:
1212
aws-region: us-east-1
13-
role-to-assume: ${{ github.ref == 'refs/heads/master' && 'arn:aws:iam::926093910549:role/eks-admin'
13+
role-to-assume: ${{ contains(github.ref, "release/") && 'arn:aws:iam::926093910549:role/eks-admin'
1414
|| 'arn:aws:iam::926093910549:role/eks-devs' }}
1515
- name: 🚀 Deploy
1616
run: 'echo "yes" | nix run .#cardano-services.${{inputs.target}}.${{inputs.action}}

nix/cardano-services/deployments/ci.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
extraSteps = lib.singleton {
2020
uses = "aws-actions/[email protected]";
2121
"with" = {
22-
role-to-assume = "\${{ github.ref == 'refs/heads/master' && 'arn:aws:iam::926093910549:role/eks-admin' || 'arn:aws:iam::926093910549:role/eks-devs' }}";
22+
role-to-assume = "\${{ contains(github.ref, \"release/\") && 'arn:aws:iam::926093910549:role/eks-admin' || 'arn:aws:iam::926093910549:role/eks-devs' }}";
2323
aws-region = "us-east-1";
2424
};
2525
};

0 commit comments

Comments
 (0)