Skip to content

Commit

Permalink
chore: revert "feat(ci): convert e2e & nightly to op"
Browse files Browse the repository at this point in the history
This reverts commit 23cefc9.
  • Loading branch information
PoisonPhang committed Aug 13, 2024
1 parent 17f14f5 commit 22baba7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 38 deletions.
21 changes: 2 additions & 19 deletions .github/workflows/e2e-manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,9 @@ on:
workflow_dispatch:

jobs:
load-secrets:
runs-on: ubuntu-latest
outputs:
union-org-pat: ${{ steps.op-load-secret.UNION_ORG_PAT }}
nixbuild-token: ${{ steps.op-load-secret.NIXBUILD_TOKEN }}
steps:
- name: Load Secrets
id: op-load-secret
uses: 1password/load-secrets-action@v2
with:
export-env: false
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

build:
needs: load-secrets
uses: ./.github/workflows/e2e.yml
secrets:
nixbuild_token: ${{ needs.load-secrets.outputs.nixbuild-token }}
nixbuild_token: ${{ secrets.NIXBUILD_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
org_token: ${{ needs.load-secrets.outputs.union-org-pat }}
org_token: ${{ secrets.UNION_ORG_PAT }}
21 changes: 2 additions & 19 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,12 @@ on:
- cron: '0 4 * * *'

jobs:
load-secrets:
runs-on: ubuntu-latest
outputs:
union-org-pat: ${{ steps.op-load-secret.UNION_ORG_PAT }}
nixbuild-token: ${{ steps.op-load-secret.NIXBUILD_TOKEN }}
steps:
- name: Load Secrets
id: op-load-secret
uses: 1password/load-secrets-action@v2
with:
export-env: false
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

build:
needs: load-secrets
uses: ./.github/workflows/e2e.yml
secrets:
nixbuild_token: ${{ needs.load-secrets.outputs.nixbuild-token }}
nixbuild_token: ${{ secrets.nixbuild_token }}
github_token: ${{ secrets.GITHUB_TOKEN }}
org_token: ${{ needs.load-secrets.outputs.union-org-pat }}
org_token: ${{ secrets.UNION_ORG_PAT }}

create-issue:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 22baba7

Please sign in to comment.