-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
164 additions
and
0 deletions.
There are no files selected for viewing
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
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/grimshot.git | ||
# you can extend settings using https://probot.github.io/apps/settings/ |
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
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/grimshot.git |
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
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 }} |
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
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/grimshot.git | ||
dispatch-target: ${{ vars.PACKAGES_REPO }} | ||
dispatch-token: ${{ secrets.DISPATCH_TOKEN }} |
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
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 |
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
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 }} |