Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Gregory Edison <[email protected]>
  • Loading branch information
greged93 committed Oct 31, 2024
1 parent 6b28489 commit 97a60a3
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/e2e-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: recursive
token: ${{ secrets.GITHUB_TOKEN }}
- name: install foundry
uses: foundry-rs/foundry-toolchain@v1
with:
Expand All @@ -46,8 +45,12 @@ jobs:
scarb-version: 0.7.0
- name: Run staging script
env:
KAKAROT_STAGING_PRIVATE_KEY:
${{ secrets.KAKAROT_STAGING_PRIVATE_KEY }}
STARKNET_SEPOLIA_STAGING_PRIVATE_KEY:
${{ secrets.STARKNET_SEPOLIA_STAGING_PRIVATE_KEY }}
STARKNET_SEPOLIA_STAGING_ACCOUNT_ADDRESS:
${{ secrets.STARKNET_SEPOLIA_STAGING_ACCOUNT_ADDRESS }}
INFURA_KEY:
${{ secrets.INFURA_KEY }}
run: |
cd scripts
sh e2e_pipeline.sh ${{ github.event.inputs.action }} --${{ github.event.inputs.environment }}
Expand All @@ -59,10 +62,14 @@ jobs:
has_diff=$?
set -e
echo "has_diff=$has_diff" >> $GITHUB_ENV
- uses: actions/create-github-app-token@v1
id: github_token
with:
app-id: ${{ secrets.KAKAROT_BOT_APP_ID }}
private-key: ${{ secrets.KAKAROT_BOT_APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
- name: Create PR for deployment updates
if: ${{ env.has_diff == 1 }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set +e
cd lib/kakarot
Expand Down

0 comments on commit 97a60a3

Please sign in to comment.