-
Notifications
You must be signed in to change notification settings - Fork 4
36 lines (33 loc) · 1.23 KB
/
fetch-and-update-freetz-ng-prerequisites.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
name: Update Freetz-NG Prerequisites
on:
workflow_dispatch:
schedule:
- cron: '55 3 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache curl results
id: cache-curl-results
uses: actions/cache@v4
env:
cache-name: cache-curl-results
with:
path: ~/.cache
key: curlcontent-${{ runner.os }}-${{ github.run_id }}
restore-keys: curlcontent-${{ runner.os }}
- name: Run generate-prereqs.sh
run: bash scripts/generate-prerequisites.sh "https://raw.githubusercontent.com/Freetz-NG/freetz-ng/master/docs/PREREQUISITES/README.md" ~/.cache provisioning
- name: set ETAG env
run: echo "ETAG=$(cat ~/.cache/README.md.etag | tr -d '\"')" >> $GITHUB_ENV
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
# token is necessary so that the PR can be commented by another GHA workflow
token: ${{ secrets.PR_PAT }}
title: 'https://github.com/Freetz-NG/freetz-ng/blob/master/docs/PREREQUISITES was updated'
branch: create-pull-request/patch-${{ env.ETAG }}
commit-message: "Update in upstream content"
delete-branch: true
assignees: pfichtner