This repository has been archived by the owner on Sep 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update diff-action migration workflow
- Move env var into extension installation step - Update secret action based on up to date version
- Loading branch information
1 parent
6869f69
commit 483287f
Showing
1 changed file
with
17 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} |