-
Notifications
You must be signed in to change notification settings - Fork 40
34 lines (31 loc) · 1.03 KB
/
e2e-manual.yml
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
name: e2e Manual
on:
workflow_dispatch:
jobs:
load-secrets:
runs-on: ubuntu-latest
outputs:
union-org-pat: ${{ steps.op-set-secret.UNION_ORG_PAT }}
nixbuild-token: ${{ steps.op-set-secret.NIXBUILD_TOKEN }}
steps:
- name: Load Secrets
id: op-load-secret
uses: 1password/load-secrets-action@v2
with:
export-env: true
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
UNION_ORG_PAT: op://ci/union-org-pat/pat
NIXBUILD_TOKEN: op://ci/nixbuild-token/token
- name: Set Secrets Output
id: op-set-secret
run: |
echo "UNION_ORG_PAT=$UNION_ORG_PAT" >> $GITHUB_OUTPUT
echo "NIXBUILD_TOKEN=$NIXBUILD_TOKEN" >> $GITHUB_OUTPUT
build:
needs: load-secrets
uses: ./.github/workflows/e2e.yml
secrets:
nixbuild_token: ${{ needs.load-secrets.outputs.nixbuild-token }}
gh_token: ${{ secrets.GITHUB_TOKEN }}
org_token: ${{ needs.load-secrets.outputs.union-org-pat }}