mirror of
https://github.com/FlipsideCrypto/fsc-evm.git
synced 2026-02-06 17:57:01 +00:00
exit code 1
This commit is contained in:
parent
01a721738a
commit
f98f4d59a8
28
.github/workflows/update_fsc_evm_version.yml
vendored
28
.github/workflows/update_fsc_evm_version.yml
vendored
@ -86,15 +86,15 @@ jobs:
|
||||
echo ""
|
||||
echo "📦 Processing ${repo}..."
|
||||
|
||||
# Create temp directory
|
||||
# Create temp directory without trap
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
trap "rm -rf $TEMP_DIR" EXIT
|
||||
|
||||
# Clone repository
|
||||
if ! git clone -q "https://github.com/${FULL_REPO}.git" "${TEMP_DIR}/${repo}" 2>/dev/null; then
|
||||
echo " ❌ Failed to clone repository"
|
||||
RESULTS["${repo}"]="FAILED: Could not clone repository"
|
||||
((FAIL_COUNT++))
|
||||
rm -rf "$TEMP_DIR"
|
||||
continue
|
||||
fi
|
||||
|
||||
@ -106,6 +106,7 @@ jobs:
|
||||
RESULTS["${repo}"]="FAILED: packages.yml not found"
|
||||
((FAIL_COUNT++))
|
||||
cd - > /dev/null
|
||||
rm -rf "$TEMP_DIR"
|
||||
continue
|
||||
fi
|
||||
|
||||
@ -119,6 +120,7 @@ jobs:
|
||||
RESULTS["${repo}"]="SKIPPED: Already at ${VERSION}"
|
||||
((SKIP_COUNT++))
|
||||
cd - > /dev/null
|
||||
rm -rf "$TEMP_DIR"
|
||||
continue
|
||||
fi
|
||||
|
||||
@ -127,6 +129,7 @@ jobs:
|
||||
RESULTS["${repo}"]="DRY RUN: Would update ${CURRENT_VERSION} → ${VERSION}"
|
||||
((SUCCESS_COUNT++))
|
||||
cd - > /dev/null
|
||||
rm -rf "$TEMP_DIR"
|
||||
continue
|
||||
fi
|
||||
|
||||
@ -151,30 +154,18 @@ jobs:
|
||||
RESULTS["${repo}"]="FAILED: Could not push branch"
|
||||
((FAIL_COUNT++))
|
||||
cd - > /dev/null
|
||||
rm -rf "$TEMP_DIR"
|
||||
continue
|
||||
fi
|
||||
|
||||
# Create PR
|
||||
PR_BODY="## 🔄 Automated fsc-evm Update
|
||||
|
||||
This PR updates the fsc-evm package version from \\\`${CURRENT_VERSION}\\\` to \\\`${VERSION}\\\`.
|
||||
|
||||
### Changes
|
||||
\\\`\\\`\\\`diff
|
||||
packages:
|
||||
- git: https://github.com/FlipsideCrypto/fsc-evm.git
|
||||
- revision: ${CURRENT_VERSION}
|
||||
+ revision: ${VERSION}
|
||||
\\\`\\\`\\\`
|
||||
|
||||
---
|
||||
*This PR was auto-generated by the fsc-evm version update workflow.*"
|
||||
# Create PR body
|
||||
PR_BODY=$'## 🔄 Automated fsc-evm Update\n\nThis PR updates the fsc-evm package version from `'"${CURRENT_VERSION}"'` to `'"${VERSION}"'`.\n\n### Changes\n```diff\npackages:\n - git: https://github.com/FlipsideCrypto/fsc-evm.git\n- revision: '"${CURRENT_VERSION}"'\n+ revision: '"${VERSION}"'\n```\n\n---\n*This PR was auto-generated by the fsc-evm version update workflow.*'
|
||||
|
||||
# Create PR and capture output
|
||||
PR_OUTPUT=$(gh pr create \
|
||||
--repo "${FULL_REPO}" \
|
||||
--title "chore: update fsc-evm to ${VERSION}" \
|
||||
--body "${PR_BODY}" \
|
||||
--body "$PR_BODY" \
|
||||
--base main \
|
||||
--head "${BRANCH}" 2>&1) || true
|
||||
|
||||
@ -196,6 +187,7 @@ jobs:
|
||||
fi
|
||||
|
||||
cd - > /dev/null
|
||||
rm -rf "$TEMP_DIR"
|
||||
done
|
||||
|
||||
# Final summary
|
||||
|
||||
Loading…
Reference in New Issue
Block a user