Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
minikin committed Oct 25, 2024
1 parent fb45eb6 commit 55ad662
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/validate-project-fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,12 @@ jobs:

- name: Run Project Fields Validation
uses: input-output-hk/catalyst-ci/actions/run@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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' }}"
target_flags: --GITHUB_TOKEN="${{ secrets.GITHUB_TOKEN }}" --GITHUB_REPOSITORY="${{ github.repository }}" --GITHUB_EVENT_NUMBER="${{ github.event.number || '0' }}"
runner_address: ${{ secrets.EARTHLY_SATELLITE_ADDRESS }}
artifact: false
3 changes: 2 additions & 1 deletion utilities/project-fields-validator/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ validate-project-fields:
RUN pip install requests

ARG PROJECT_NUMBER=102
ARG --required GITHUB_TOKEN
ARG --required GITHUB_REPOSITORY
ARG --required GITHUB_EVENT_NUMBER

ENV PROJECT_NUMBER=${PROJECT_NUMBER}
ENV GITHUB_REPOSITORY=${GITHUB_REPOSITORY}
ENV GITHUB_EVENT_NUMBER=${GITHUB_EVENT_NUMBER}

RUN python3 main.py
RUN --secret GITHUB_TOKEN=${GITHUB_TOKEN} python3 main.py

0 comments on commit 55ad662

Please sign in to comment.