-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 971 Bytes
/
update.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
on:
push:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
jobs:
update:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- run: nix build nixpkgs#cacert
- run: cp result/etc/ssl/certs/ca-bundle.crt cacert.pem
- run: rm -rf result
- uses: stefanzweifel/git-auto-commit-action@v5
id: commit
with:
commit_message: "Automated update"
commit_author: "Scheduler <github-actions[bot]@users.noreply.github.com>"
- name: Set Calver Version
id: "calver"
uses: Nelyx/[email protected]
with:
default_branch: "refs/heads/main"
format: "YYYY.M.D"
version_prefix: "v0."
- uses: rickstaa/action-create-tag@v1
if: steps.commit.outputs.changes_detected
with:
tag: "${{ env.PACKAGE_VERSION }}"