forked from foundriesio/fioctl
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (32 loc) · 809 Bytes
/
tuf.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
name: Refresh timestamp metadata
on:
schedule:
# every 8 hours
- cron: '0 */8 * * *'
workflow_dispatch:
inputs:
branches:
description: The branch to run on
required: false
default: 'main'
type: string
jobs:
resign:
if: github.repository == 'foundriesio/fioctl'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: tuf-metadata
- name: Setup signing key
env:
TIMESTAMP_JSON: ${{ secrets.TUF_TIMESTAMP_JSON }}
run: |
mkdir keys
echo "$TIMESTAMP_JSON" > keys/timestamp.json
- name: Sign
env:
TUF_TIMESTAMP_PASSPHRASE: ${{ secrets.TUF_TIMESTAMP_PASSPHRASE}}
run: |
./refresh-metadata.sh