Skip to content

Commit

Permalink
Fixing: Update CICD
Browse files Browse the repository at this point in the history
  • Loading branch information
rivan committed Jul 3, 2024
1 parent 7008fb9 commit 4b41fd6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Create S3 directory object if not exists
run: |
BUCKET_NAME=${{ secrets.AWS_BUCKET_NAME_STG }}
DIRECTORY_NAME=${{ env.AWS_BUCKET_OBJECT_NAME_01 }}
DIRECTORY_NAME=${{ vars.AWS_BUCKET_OBJECT_NAME_01 }}
state=`aws s3 ls $BUCKET_NAME/$DIRECTORY_NAME`
if [ -z "$state" ]
Expand All @@ -44,8 +44,8 @@ jobs:
- name: Copy json lokalise objects to particular S3 directory
run: |
BUCKET_NAME=${{ secrets.AWS_BUCKET_NAME_STG }}
DIRECTORY_NAME=${{ env.AWS_BUCKET_OBJECT_NAME_01 }}
LOCAL_DIRECTORY="${{ env.AWS_BUCKET_OBJECT_NAME_01 }}"
DIRECTORY_NAME=${{ vars.AWS_BUCKET_OBJECT_NAME_01 }}
LOCAL_DIRECTORY=${{ vars.AWS_BUCKET_OBJECT_NAME_01 }}
aws s3 cp "$LOCAL_DIRECTORY" "s3://$BUCKET_NAME/$DIRECTORY_NAME" --recursive --exclude "*" --include "*.json"
if: ${{ github.ref == 'refs/heads/staging' }}
Expand All @@ -59,7 +59,7 @@ jobs:
- name: Create S3 directory object if not exists
run: |
BUCKET_NAME=${{ secrets.AWS_BUCKET_NAME_STG }}
DIRECTORY_NAME=${{ env.AWS_BUCKET_OBJECT_NAME_01 }}
DIRECTORY_NAME=${{ vars.AWS_BUCKET_OBJECT_NAME_01 }}
state=`aws s3 ls $BUCKET_NAME/$DIRECTORY_NAME`
if [ -z "$state" ]
Expand All @@ -75,8 +75,8 @@ jobs:
- name: Copy json lokalise objects to particular S3 directory
run: |
BUCKET_NAME=${{ secrets.AWS_BUCKET_NAME_STG }}
DIRECTORY_NAME=${{ env.AWS_BUCKET_OBJECT_NAME_01 }}
LOCAL_DIRECTORY="${{ env.AWS_BUCKET_OBJECT_NAME_01 }}"
DIRECTORY_NAME=${{ vars.AWS_BUCKET_OBJECT_NAME_01 }}
LOCAL_DIRECTORY="${{ vars.AWS_BUCKET_OBJECT_NAME_01 }}"
aws s3 cp "$LOCAL_DIRECTORY" "s3://$BUCKET_NAME/$DIRECTORY_NAME" --recursive --exclude "*" --include "*.json"
if: ${{ github.ref == 'refs/heads/main' }}

0 comments on commit 4b41fd6

Please # to comment.