Skip to content

Release validator_node@0.1.2 #1

Release validator_node@0.1.2

Release validator_node@0.1.2 #1

name: Create Validator Release
on:
push:
tags:
- "validator_node@*"
permissions:
id-token: write
contents: read
jobs:
release:

Check failure on line 13 in .github/workflows/release-validator.yml

View workflow run for this annotation

GitHub Actions / Create Validator Release

Invalid workflow file

The workflow is not valid. .github/workflows/release-validator.yml (Line: 13, Col: 3): Error calling workflow 'originalworks/protocol-core/.github/workflows/_release-template.yml@45e5e1c6a5a570d308719eae8223d82a61374a87'. The nested job 'release' is requesting 'contents: write', but is only allowed 'contents: read'.
uses: ./.github/workflows/_release-template.yml
with:
tag: ${{ github.ref }}
secrets: inherit
rebuild-ec2:
runs-on: ubuntu-latest
steps:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-region: us-east-1
role-to-assume: ${{ secrets.IAM_WORKFLOW_ROLE_PROTOCOL }}
role-session-name: protocol-core-session-id-${{ github.run_id }}
role-duration-seconds: 1200
- name: "Trigger rebuild via SSM"
run: |
aws ssm send-command \
--region us-east-1 \
--timeout-seconds 18000 \
--document-name "AWS-RunShellScript" \
--targets Key=tag:ValidatorTag,Values=ValidatorNodeEc2 \
--parameters commands=["bash /workspace/protocol-core/aws/validator-infra/rebuild-and-run.sh"]