-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
34 lines (31 loc) · 1.08 KB
/
action.yml
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
name: Checkout
description: Checkout repo and decrypt with transcrypt
inputs:
decrypt_key:
description: 'Key to decrypt repository files with transcrypt'
required: false
runs:
using: composite
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Cache ~/.transcryptbin for v2.3.0-pre
if: inputs.decrypt_key != null
uses: actions/cache@v4
id: cache-transcrypt
env:
cache-name: cache-transcrypt
with:
path: ~/.transcryptbin
key: ${{ runner.os }}-${{ env.cache-name }}-v2.3.0-pre
- name: Install Transcrypt
if: inputs.decrypt_key != null && steps.cache-transcrypt.outputs.cache-hit != 'true'
run: |
mkdir ~/.transcryptbin
curl -o ~/.transcryptbin/transcrypt https://raw.githubusercontent.com/elasticdog/transcrypt/master/transcrypt
chmod +x ~/.transcryptbin/transcrypt
shell: bash
- name: Decrypt Repo (previously checked out)
if: inputs.decrypt_key != null
run: ~/.transcryptbin/transcrypt -c aes-256-cbc -y -p ${{ inputs.decrypt_key }}
shell: bash