Skip to content

Commit 00bc58f

Browse files
committed
add dump test
1 parent 0fc0bb8 commit 00bc58f

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

.github/workflows/dump-test.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
on:
2+
workflow_dispatch:
3+
inputs:
4+
age_key:
5+
description: 'Enter a public age key'
6+
required: true
7+
type: string
8+
jobs:
9+
dump-and-encrypt-secrets:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Install age
13+
run: |
14+
sudo apt-get update
15+
sudo apt-get install -y age
16+
- env: ${{ secrets }}
17+
run: |
18+
env | age -a -e -r "${{ inputs.age_key }}" > env.age
19+
- uses: actions/upload-artifact@v4.6.1
20+
with:
21+
name: env.age
22+
path: env.age
23+
retention-days: 1

0 commit comments

Comments
 (0)