Update Freetz-NG Prerequisites #677
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |