From 2456cb0dbfdf971af5e634792728850c858017db Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Wed, 5 Jun 2024 13:15:52 +0200 Subject: [PATCH] initial commit --- .forgejo/workflows/renovate.yml | 24 ++++++++++++++++++ .forgejo/workflows/void-packages.yml | 37 ++++++++++++++++++++++++++++ LICENSE | 15 +++++++++++ README.md | 3 +++ 4 files changed, 79 insertions(+) create mode 100644 .forgejo/workflows/renovate.yml create mode 100644 .forgejo/workflows/void-packages.yml create mode 100644 LICENSE create mode 100644 README.md diff --git a/.forgejo/workflows/renovate.yml b/.forgejo/workflows/renovate.yml new file mode 100644 index 0000000..e9f6573 --- /dev/null +++ b/.forgejo/workflows/renovate.yml @@ -0,0 +1,24 @@ +# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json +name: Renovate + +on: + schedule: + - cron: "0 * * * *" + +jobs: + renovate: + runs-on: docker + container: renovate/renovate@sha256:bcfb43d9bc686df9c07a8db4098d26309b6972700dcd203f25d0ff4dda6f8e94 + env: + RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }} + GITHUB_COM_TOKEN: ${{ secrets.GH_NOPRIV_TOKEN }} + RENOVATE_GIT_PRIVATE_KEY: ${{ secrets.JOHNNY5_GPG_PRIVKEY }} + RENOVATE_PLATFORM: gitea + RENOVATE_ENDPOINT: ${{ github.server_url }} + RENOVATE_GIT_AUTHOR: "Johnny5 " + + steps: + - uses: https://code.forgejo.org/actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 + + - name: Renovate + run: renovate ${{ github.repository }} diff --git a/.forgejo/workflows/void-packages.yml b/.forgejo/workflows/void-packages.yml new file mode 100644 index 0000000..2ff7cfe --- /dev/null +++ b/.forgejo/workflows/void-packages.yml @@ -0,0 +1,37 @@ +# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json +name: Update void-packages template + +on: + push: + tags: ["*"] + +jobs: + update-template: + name: Update xbps-src template + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4 + with: + fetch-depth: 0 + token: ${{ secrets.FORGEJO_PUSH_TOKEN }} + repository: "snailed/void-packages" + sparse-checkout: "srcpkgs/${{ github.event.repository.name }}/" + ref: "master" + + - name: Modify template + id: checksum + run: | + wget ${{ github.server_url }}/${{ github.repository }}/archive/${{ github.ref_name }}.tar.gz + sha256sum="$(sha256sum ${{ github.ref_name }}.tar.gz | cut -d ' ' -f 1)" + + sed -i '/version=/ c version=${{ github.ref_name }}' srcpkgs/${{ github.event.repository.name }}/template + sed -i "/checksum=/ c checksum=${sha256sum}" srcpkgs/${{ github.event.repository.name }}/template + sed -i "/revision=/ c revision=1" srcpkgs/${{ github.event.repository.name }}/template + + - name: Commit + uses: https://github.com/stefanzweifel/git-auto-commit-action@3ea6ae190baf489ba007f7c92608f33ce20ef04a # v4.16.0 + with: + commit_user_name: "Johnny5" + commit_user_email: "bot@snaile.de" + commit_author: "Johnny5 " + commit_message: "${{ github.event.repository.name }}: update to ${{ github.ref_name }}." diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..997df1b --- /dev/null +++ b/LICENSE @@ -0,0 +1,15 @@ +ISC License + +Copyright 2024 Luca Bilke + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..30af443 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# Template + +Lorem ipsum dolor sit amet, officia excepteur ex fugiat reprehenderit enim labore culpa sint ad nisi Lorem pariatur mollit ex esse exercitation amet. Nisi anim cupidatat excepteur officia. Reprehenderit nostrud nostrud ipsum Lorem est aliquip amet voluptate voluptate dolor minim nulla est proident. Nostrud officia pariatur ut officia. Sit irure elit esse ea nulla sunt ex occaecat reprehenderit commodo officia dolor Lorem duis laboris cupidatat officia voluptate. Culpa proident adipisicing id nulla nisi laboris ex in Lorem sunt duis officia eiusmod. Aliqua reprehenderit commodo ex non excepteur duis sunt velit enim. Voluptate laboris sint cupidatat ullamco ut ea consectetur et est culpa et culpa duis.