Skip to content

Commit

Permalink
fix(workflows): add node sync check; refine artefacts append to relea…
Browse files Browse the repository at this point in the history
…ses (#4213)
  • Loading branch information
kvs96 authored Oct 7, 2024
1 parent 83b7809 commit ae0c314
Show file tree
Hide file tree
Showing 13 changed files with 307 additions and 606 deletions.
2 changes: 2 additions & 0 deletions .github/actions/message/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ outputs:
description: If enable macOS build.
validator:
description: If enable validator checks.
check-node-sync:
description: If enable try full node sync.
release:
description: If enable release build.
production:
Expand Down
4 changes: 4 additions & 0 deletions .github/actions/message/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const RELEASE = "E3-forcerelease";
const PRODUCTION = "E4-forceproduction";
const SKIP_CI = "[skip-ci]";
const VALIDATOR_LABEL = "check-validator";
const CHECK_NODE_SYNC = "check-node-sync";
const [owner, repo] = ["gear-tech", "gear"];

/**
Expand Down Expand Up @@ -78,6 +79,7 @@ async function main() {
!skipCI &&
(isDepbot || BUILD_LABELS.some((label) => labels.includes(label)));
const validator = !skipCI && labels.includes(VALIDATOR_LABEL);
const check_node_sync = !skipCI && labels.includes(CHECK_NODE_SYNC);
const win_native = !skipCI && labels.includes(WINDOWS_NATIVE);
const macos = !skipCI && labels.includes(MACOS);
const release = !skipCI && labels.includes(RELEASE);
Expand All @@ -90,6 +92,7 @@ async function main() {
core.setOutput("macos", macos);
core.setOutput("release", release);
core.setOutput("validator", validator);
core.setOutput("check-node-sync", check_node_sync);
core.setOutput("production", production);

console.log("---");
Expand All @@ -99,6 +102,7 @@ async function main() {
console.log("macos: ", macos);
console.log("production: ", production);
console.log("validator: ", validator);
console.log("check-node-sync: ", check_node_sync);
console.log("release: ", release);

// Mock checks if skipping CI.
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/PR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
win-native: ${{ steps.config.outputs.win-native }}
macos: ${{ steps.config.outputs.macos }}
validator: ${{ steps.config.outputs.validator }}
check-node-sync: ${{ steps.config.outputs.check-node-sync }}
release: ${{ steps.config.outputs.release }}
production: ${{ steps.config.outputs.production }}
steps:
Expand Down Expand Up @@ -74,3 +75,8 @@ jobs:
VARA_VALIDATOR_8: ${{ secrets.VARA_VALIDATOR_8 }}
SSH_VARA_USERNAME: ${{ secrets.SSH_VARA_USERNAME }}
VARA_SSH_PRIVATE_KEY: ${{ secrets.VARA_SSH_PRIVATE_KEY }}

check-node-sync:
needs: status
if: ${{ needs.status.outputs.check-node-sync == 'true' }}
uses: ./.github/workflows/check-node-sync.yml
215 changes: 0 additions & 215 deletions .github/workflows/Update-Vara-Prod.yml

This file was deleted.

Loading

0 comments on commit ae0c314

Please sign in to comment.