Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/trigger-devnet-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@ jobs:
# Get script without checkout for use on any repo
- name: Get script
run: |
mkdir ci
cd ci
curl -JLO https://raw.githubusercontent.com/casper-network/casper-node/refs/heads/dev/ci/dev_net_protocol_generate.sh
chmod +x dev_net_protocol_generate.sh
curl -JLO https://raw.githubusercontent.com/casper-network/casper-node/refs/heads/dev/ci/next_upgrade_era_with_buffer.sh
chmod +x next_upgrade_era_with_buffer.sh

# Assign AWS PROD role to get access to production cloudfronts and S3 buckets
- name: Configure AWS credentials
Expand All @@ -27,7 +31,7 @@ jobs:
aws-region: ${{ secrets.AWS_ACCESS_REGION_GENESIS }}

- name: Build protocol update
run: ./dev_net_protocol_generate.sh
run: ./ci/dev_net_protocol_generate.sh

- name: Upload artifacts to S3
run: aws s3 sync ./target/genesis/ s3://${{ secrets.AWS_BUCKET_GENESIS }}/dev-net/
Expand Down
6 changes: 3 additions & 3 deletions ci/dev_net_protocol_generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ IFS="_"
read -ra LPVA <<< "$LATEST_PROTOCOL_VERSION"

# Incrementing one to patch
NEW_PROTOCOL_VERSION=${LPVA[0]}_${LPVA[1]}_$((${LPVA[2]} + 1))
NEW_PROTOCOL_VERSION=${LPVA[0]}_${LPVA[1]}_$((LPVA[2] + 1))
echo "New dev-net protocol version: $NEW_PROTOCOL_VERSION"
echo

Expand All @@ -40,14 +40,14 @@ echo "## Creating $PROTOCOL_DIR"
mkdir -p "$PROTOCOL_DIR"
echo

echo $NEW_PROTOCOL_VERSION > "$GENESIS_DIR/protocol_versions"
echo "$NEW_PROTOCOL_VERSION" > "$GENESIS_DIR/protocol_versions"
echo "## protocol_versions file contents:"
echo "---"
cat "$GENESIS_DIR/protocol_versions"
echo "---"
echo

echo $CURRENT_HASH > "$GENESIS_DIR/latest_git_hash"
echo "$CURRENT_HASH" > "$GENESIS_DIR/latest_git_hash"
echo "## latest_git_hash file contents:"
echo "---"
cat "$GENESIS_DIR/latest_git_hash"
Expand Down
Loading