generate Arch Linux PKGBUILD files for kodi pvr addons #749
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: generate Arch Linux PKGBUILD files for kodi pvr addons | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * *' | |
push: | |
branches: | |
- master | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: set variables | |
run: | | |
echo "UPDATE_TIME=$(date +%Y-%m-%d)" >> $GITHUB_ENV | |
- name: prepare scripts | |
uses: actions/checkout@v2 | |
with: | |
ref: master | |
- name: generate PKGBUILD | |
run: | | |
bash gen-pvr-pkgbuild.sh | |
- name: add license | |
run: | | |
curl -sLo release/LICENSE https://www.gnu.org/licenses/gpl-3.0.txt | |
- name: add workflow | |
run: | | |
mkdir -p release/.github/workflows | |
cp workflow.yml release/.github/workflows/main.yml | |
- name: push release | |
uses: s0/git-publish-subdir-action@develop | |
env: | |
REPO: self | |
BRANCH: release | |
FOLDER: release | |
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }} | |
MESSAGE: auto update at ${{ env.UPDATE_TIME }} |