-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (35 loc) · 1.22 KB
/
release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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