Skip to content

Commit

Permalink
🍱 Bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
boredland committed Dec 10, 2023
1 parent 21cb0b1 commit b827847
Show file tree
Hide file tree
Showing 7 changed files with 169 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# inherits settings from https://github.com/Manjaro-Sway/.github/blob/main/.github/settings.yml
_extends: manjaro-contrib/.github
repository:
homepage: https://aur.archlinux.org/idlehack-git.git
# you can extend settings using https://probot.github.io/apps/settings/
19 changes: 19 additions & 0 deletions .github/workflows/bootstrap.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: bootstrap
on:
workflow_dispatch:
schedule:
- cron: "0 1-23/2 * * *"

jobs:
bootstrap_actions:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: checkout
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
with:
token: ${{ secrets.BOOTSTRAP_WORKFLOWS || github.token }}
- id: bootstrap
uses: manjaro-contrib/action-bootstrap-actions@main
with:
upstream: https://aur.archlinux.org/idlehack-git.git
55 changes: 55 additions & 0 deletions .github/workflows/pkgbuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: pkgbuild

on:
repository_dispatch:
types:
- rebase
workflow_dispatch:
push:
branches:
- master
- main

concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true

jobs:
version:
name: gather information
runs-on: ubuntu-latest
steps:
- name: check out repo
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
- id: version
uses: manjaro-contrib/action-pkgbuild-info@main
outputs:
runs-on: ${{ steps.version.outputs.runs-on }}
version: ${{ steps.version.outputs.version }}
branches: ${{ steps.version.outputs.branches }}
pkgbuild:
name: building version ${{ needs.version.outputs.version }} against ${{ matrix.branch }} on ${{ matrix.runs-on }}
needs: [version]
if: needs.version.outputs.branches != ''
continue-on-error: true
strategy:
matrix:
branch: ${{ fromJSON(needs.version.outputs.branches) }}
runs-on: ${{ fromJSON(needs.version.outputs.runs-on) }}
runs-on: ${{ matrix.runs-on }}
permissions:
contents: write
packages: write
container:
image: docker://manjarolinux/build:latest
steps:
- name: pkgbuild
uses: manjaro-contrib/action-makepkg@main
with:
branch: ${{ matrix.branch }}
release: ${{ matrix.branch }}-${{ needs.version.outputs.version }}
dispatch-target: ${{ vars.PACKAGES_REPO }}
dispatch-token: ${{ secrets.DISPATCH_TOKEN }}
gpg_secret_base64: ${{ secrets.gpg_secret_base64 }}
additional_gpg: ${{ vars.ADDITIONAL_GPG }}
additional_repo: ${{ vars.ADDITIONAL_REPO }}
24 changes: 24 additions & 0 deletions .github/workflows/rebase.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: rebase

on:
workflow_dispatch:
schedule:
- cron: "*/30 * * * *"

concurrency:
group: rebase
cancel-in-progress: true

jobs:
rebase:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: rebase
uses: manjaro-contrib/action-rebase@main
with:
upstream: https://aur.archlinux.org/idlehack-git.git
dispatch-target: ${{ vars.PACKAGES_REPO }}
dispatch-token: ${{ secrets.DISPATCH_TOKEN }}
34 changes: 34 additions & 0 deletions .github/workflows/set-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: set version to src version

on:
repository_dispatch:
types:
- source_update

concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true

jobs:
update-version:
runs-on: ubuntu-latest
steps:
- name: check out the repo
id: checkout_repo
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
with:
token: ${{ secrets.DISPATCH_TOKEN }}
- name: update pkgbuild
env:
VERSION: ${{ github.event.client_payload.version }}
MD5: ${{ github.event.client_payload.md5 }}
run: |
[ -n "$VERSION" ] && sed -i "/pkgver=/c\pkgver=${VERSION}" PKGBUILD || exit 0
[ -n "$MD5" ] && sed -i "/_sourcemd5=/c\_sourcemd5=${MD5}" PKGBUILD || exit 0
- name: commit
run: |
git config --global user.name "Repo Update Bot"
git config --global user.email "[email protected]"
git add PKGBUILD
git commit -m "chore: release version ${{ github.event.client_payload.version }}"
git push
27 changes: 27 additions & 0 deletions .github/workflows/submit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: submit

on:
workflow_dispatch:
push:
branches:
- main

concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true

jobs:
resubmit:
runs-on: ubuntu-latest
strategy:
matrix:
branch: [stable, testing, unstable]
permissions:
contents: write
steps:
- name: submit
uses: manjaro-contrib/action-submit@main
with:
dispatch-target: ${{ vars.PACKAGES_REPO }}
dispatch-token: ${{ secrets.DISPATCH_TOKEN }}
branch: ${{ matrix.branch }}
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*
!PKGBUILD
!.github
!.github/**/*
!.install

0 comments on commit b827847

Please sign in to comment.