-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (37 loc) · 1.01 KB
/
release.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
35
36
37
38
39
---
name: Publish Release
on:
workflow_dispatch:
inputs:
version:
description: 'Version Number'
required: true
type: string
download_url:
description: 'Download URL'
required: true
type: string
sha256sum:
description: 'SHA-256 checksum'
required: true
type: string
jobs:
collectd6:
if: ${{ startsWith(inputs.version, '6.') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Update data file
run: |
cat >_data/collectd6.yml <<EOF
version: ${{ inputs.version }}
url: "${{ inputs.download_url }}"
sha256: ${{ inputs.sha256sum }}
EOF
git add _data/collectd6.yml
- name: Commit data file
run: |
git config --global user.name 'collectd bot'
git config --global user.email '[email protected]'
git commit -am "Bump collectd6 to ${{ inputs.version }}"
git push