Skip to content

Commit

Permalink
Hulk deployment (#617)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwin1111 authored Jul 1, 2024
1 parent 5a08a3e commit 474398b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,35 +10,37 @@ on:
- completed

jobs:
hulk_deploy:
fyle_hulk_deploy:
runs-on: ubuntu-latest
environment: Staging
steps:
- uses: actions/checkout@v2
with:
submodules: true
submodules: true

- name: Initialize and update submodules
run: |
git submodule sync --recursive
git submodule update --init --recursive
git submodule foreach git fetch --all
sleep 5
- name: Run CI
id: run-ci
run: |
echo "Running ci"
echo "Running CI"
sleep 5
- name: Get Release branch name if workflow_run
if: github.event_name == 'workflow_run'
run: |
echo "release_branch=netsuite_api_release_$(date +%Y_%m_%d)" >> $GITHUB_ENV
- name: Checkout to Release branch if workflow_run
uses: actions/checkout@v4
uses: actions/checkout@v2
if: github.event_name == 'workflow_run'
with:
ref: ${{env.release_branch}}
ref: ${{ env.release_branch }}

- name: Verify current branch
run: git branch --show-current
Expand Down Expand Up @@ -86,4 +88,4 @@ jobs:
git commit -m "Deployed fyle_netsuite-api:$NEW_TAG to hulk"
git remote set-url origin https://x-access-token:${{ secrets.DEPLOY_GIT_ACCESS_TOKEN }}@github.com/${{ vars.STAGING_DEPLOY_REPO }}
git pull origin master
git push origin master
git push origin master
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,7 @@ Django Rest Framework API for Fyle Netsuite Integration.
OK
Destroying test database for alias 'default'...
```
```

0 comments on commit 474398b

Please sign in to comment.