Skip to content

Commit

Permalink
fix: use result key (#7267)
Browse files Browse the repository at this point in the history
  • Loading branch information
spypsy authored Jul 2, 2024
1 parent 987ba1a commit 1227447
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/devnet-deploys.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,16 @@ jobs:

- name: Check if L1 contracts need deployment
id: check_changes
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
const { execSync } = require('child_process');
const changedFiles = execSync('git diff --name-only ${{ github.event.before }} ${{ github.sha }}').toString().split('\n');
const fileChanged = changedFiles.includes('l1-contracts/REDEPLOY');
console.log('fileChanged:', fileChanged);
return { fileChanged };
return fileChanged
- name: Deploy L1 Contracts
if: steps.check_changes.outputs.fileChanged == 'true'
if: steps.check_changes.outputs.result == 'true'
run: |
earthly-ci --no-output ./yarn-project/cli+deploy-l1-contracts \
--PRIVATE_KEY=${{ secrets.SEQ_1_PUBLISHER_PRIVATE_KEY }} \
Expand All @@ -86,7 +85,7 @@ jobs:
./scripts/extract_l1_addresses.sh ${{ env.FILE_PATH }}
- name: Apply l1-contracts Terraform
if: steps.check_changes.outputs.fileChanged == 'true'
if: steps.check_changes.outputs.result == 'true'
working-directory: ./l1-contracts/terraform
run: |
terraform init -input=false -backend-config="key=${{ env.DEPLOY_TAG }}/l1-contracts"
Expand Down
2 changes: 1 addition & 1 deletion l1-contracts/REDEPLOY
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Append value to force redeploy
4
5

0 comments on commit 1227447

Please sign in to comment.