Skip to content

Commit

Permalink
feat: force build images for deploy (#7851)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexghr authored Aug 8, 2024
1 parent a614abd commit 0152c9a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/devnet-deploys.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ on:
# push:
# branches: [devnet, provernet, alphanet]
workflow_dispatch:
inputs: {}
inputs:
rebuild_images:
description: "Rebuild images"
required: false
type: boolean

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -208,8 +212,13 @@ jobs:
- name: Check if only workflow flows have changed
id: check_only_workflow_changes
uses: actions/github-script@v7
env:
REBUILD_IMAGES: ${{ github.event.inputs.rebuild_images }}
with:
script: |
if (process.env.REBUILD_IMAGES === 'true') {
return false;
}
const { execSync } = require('child_process');
const changedFiles = execSync('git diff --name-only ${{ github.event.before }} ${{ github.sha }}')
.toString()
Expand Down

0 comments on commit 0152c9a

Please sign in to comment.