Improving NPR App #2546
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
changed_files: | |
runs-on: | |
labels: dre-runner-custom | |
# This image is based on ubuntu:20.04 | |
container: ghcr.io/dfinity/dre/actions-runner:3dd4f38f076cad73fdcc68ad37fd29bed4fa3e4d | |
name: Test changed-files | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Get all changed release files | |
id: changed-files | |
uses: tj-actions/changed-files@v45 | |
with: | |
files: | | |
release-index.yaml | |
replica-releases/** | |
node-labels/** | |
facts-db/** | |
- name: Mark bazel as success # because it should not run if only release files changed | |
uses: Sibz/github-status-action@v1 | |
if: ${{ steps.changed-files.outputs.all_changed_files_count > 0 && steps.changed-files.outputs.other_changed_files_count == 0 }} | |
with: | |
authToken: ${{secrets.GITHUB_TOKEN}} | |
context: "bazel" | |
description: "Passed" | |
state: "success" | |
sha: ${{github.event.pull_request.head.sha || github.sha}} | |
- name: Run checks for release index | |
run: | | |
rye sync | |
rye run python3 release-controller/ci_check.py --repo-path /home/runner/.cache |