Skip to content

ci: add project fields validator #27

ci: add project fields validator

ci: add project fields validator #27

name: Validate Project Fields
on:
pull_request:
types:
- opened
- edited
- synchronize
- reopened
- unassigned
permissions:
contents: write
pull-requests: write
id-token: write
repository-projects: write
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
env:
AWS_REGION: eu-central-1
AWS_ROLE_ARN: arn:aws:iam::332405224602:role/ci
EARTHLY_TARGET: docker
ECR_REGISTRY: 332405224602.dkr.ecr.eu-central-1.amazonaws.com
jobs:
validate-project-fields:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup CI
uses: input-output-hk/catalyst-ci/actions/setup@master
with:
aws_role_arn: ${{ env.AWS_ROLE_ARN }}
aws_region: ${{ env.AWS_REGION }}
earthly_runner_secret: ${{ secrets.EARTHLY_RUNNER_SECRET }}
- name: Run Project Fields Validation
uses: input-output-hk/catalyst-ci/actions/run@master
if: always()
continue-on-error: false
with:
earthfile: ./utilities/project-fields-validator
flags: --allow-privileged
targets: validate-project-fields
target_flags: --GITHUB_REPOSITORY="${{ github.repository }}" --GITHUB_EVENT_NUMBER="${{ github.event.number || '0' }}"
runner_address: ${{ secrets.EARTHLY_SATELLITE_ADDRESS }}
artifact: false