Skip to content

Commit

Permalink
feat: checkout wf-data-migration code using github action
Browse files Browse the repository at this point in the history
  • Loading branch information
liorzblrn committed May 20, 2024
1 parent 143cbcb commit 3816bab
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/publish-workflows-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -301,11 +301,16 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Checkout cloud-infra-config repository
uses: actions/checkout@v4
with:
repository: ballerine-io/wf-data-migration
token: ${{ secrets.GIT_TOKEN }}
ref: ${{ github.ref_name }}
fetch-depth: 1
submodules: 'recursive'
token: ${{ secrets.SUBMODULES_TOKEN }}

path: services/workflows-service/prisma/data-migrations

- name: Cache Docker layers
id: cache
uses: actions/cache@v2
Expand All @@ -316,14 +321,6 @@ jobs:
${{ runner.os }}-docker-${{ hashFiles('**/Dockerfile') }}
${{ runner.os }}-docker-
- name: Fetch submodule branch
id: fetch-submodule
run: |
cd services/workflows-service/prisma/data-migrations
git fetch --no-tags --depth=1 origin +refs/heads/dev:refs/remotes/origin/${{ github.ref_name }}
git checkout ${{ github.ref_name }}
cd ../../../..
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

Expand Down

0 comments on commit 3816bab

Please sign in to comment.