forked from TraceMachina/nativelink
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yaml
More file actions
23 lines (22 loc) · 705 Bytes
/
action.yaml
File metadata and controls
23 lines (22 loc) · 705 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---
# This should be a post step, but can't do it in composite actions easily. See https://github.com/actions/runner/issues/1478
name: Teardown Nix
description: "Common teardown for all runs using Nix."
inputs:
nix_name:
default: ""
nativelink_attic_token:
required: true
runs:
using: "composite"
steps:
- name: Check attic push
if: ${{ inputs.nativelink_attic_token != '' }}
run: |
cat /tmp/attic-push.log
shell: bash
- name: Attic push
if: ${{ inputs.nix_name != '' && inputs.nativelink_attic_token != '' }}
run: |
/tmp/result/bin/attic push nativelink $(nix eval --raw ${{ inputs.nix_name }})
shell: bash