Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Commit

Permalink
Update diff-action migration workflow
Browse files Browse the repository at this point in the history
- Move env var into extension installation step
- Update secret action based on up to date version
  • Loading branch information
anthonybieber authored Sep 23, 2024
1 parent 6869f69 commit 483287f
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions .github/workflows/repo-migrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,34 @@ name: Migrate Repository
on:
workflow_dispatch:

env:
GH_TOKEN: ${{ secrets.CI_PAT }}

jobs:
migrate:
runs-on: [ubuntu-latest]
steps:
- name: Install GEI
run: gh extension install github/gh-gei
env:
GH_TOKEN: ${{ github.token }}
- name: Migrate Repo
uses: achieve-3000/ghe-migration-scripts/migrate-repo@v1.0.0
uses: achieve-3000/ghe-migration-scripts/migrate-repo@v1
with:
source_repo: ${{ github.repository }}
target_repo: "mcgrawhill-llc/a3k-diff-action"
source_url: ${{ github.server_url }}
source_token: ${{ secrets.CI_PAT }}
target_token: ${{ secrets.GH_MIGRATION_TOKEN }}
- name: Migrate Secrets
uses: achieve-3000/ghe-migration-scripts/[email protected]
- name: Migrate repo Secrets
uses: achieve-3000/ghe-migration-scripts/migrate-secrets@v1
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_ASSUMABLE_ROLES_MAP: ${{ secrets.AWS_ASSUMABLE_ROLES_MAP }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
CI_PAT: ${{ secrets.CI_PAT }}
ENVIRONMENT_NAMES: ${{ secrets.ENVIRONMENT_NAMES }}
MHE_CI_PAT: ${{ secrets.MHE_CI_PAT }}
EKS_CLUSTER_MAP: ${{ secrets.EKS_CLUSTER_MAP }}
with:
source_repo: ${{ github.repository }}
target_repo: "mcgrawhill-llc/a3k-diff-action"
source_url: ${{ github.server_url}}
source_token: ${{ secrets.CI_PAT }}
target_token: ${{ secrets.GH_MIGRATION_TOKEN }}
source_repo: ${{ github.repository }}
target_repo: "mcgrawhill-llc/a3k-diff-action"
source_token: ${{ secrets.CI_PAT }}
target_token: ${{ secrets.GH_MIGRATION_TOKEN }}

0 comments on commit 483287f

Please sign in to comment.