-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Revert "fix release workflow (#453)" This reverts commit df9cda8. * Revert "refactor workflows (#449)" This reverts commit d6f91aa.
- Loading branch information
1 parent
12b571b
commit b9cb87b
Showing
10 changed files
with
118 additions
and
255 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
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 |
---|---|---|
@@ -1,18 +1,6 @@ | ||
name: "PKG: Archlinux AUR Release" | ||
name: 'PKG: Archlinux AUR Release' | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
version: | ||
description: "Version to release" | ||
required: true | ||
default: "8.0.0" | ||
type: string | ||
skip: | ||
description: "Skip release" | ||
required: false | ||
default: false | ||
type: boolean | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
|
@@ -25,19 +13,26 @@ on: | |
required: false | ||
default: false | ||
type: boolean | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
setup: | ||
runs-on: ubuntu-latest | ||
name: "Unify Inputs" | ||
name: 'Unify Inputs' | ||
outputs: | ||
version: ${{ steps.version.outputs.version }} | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Set Version | ||
- name: Set Version (Workflow Dispatch) | ||
if: github.event_name == 'workflow_dispatch' | ||
run: | | ||
echo VERSION=${{ inputs.version }} >> $GITHUB_ENV | ||
- name: Set Version (Release Event) | ||
if: github.event_name == 'release' | ||
run: | | ||
echo VERSION=${{ github.event.release.tag_name }} >> $GITHUB_ENV | ||
- name: Unified Version | ||
id: version | ||
run: | | ||
|
@@ -55,20 +50,20 @@ jobs: | |
update-pkgs: | ||
runs-on: ubuntu-latest | ||
name: "Generate & Locally Commit PKGBUILDs" | ||
name: 'Generate & Locally Commit PKGBUILDs' | ||
needs: setup | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ">=1.17.0" | ||
go-version: '>=1.17.0' | ||
- name: Execute generator (make update) | ||
run: | | ||
cd packages/archlinux | ||
make update | ||
- name: "DEBUG: Show generated package versions" | ||
- name: 'DEBUG: Show generated package versions' | ||
run: | | ||
cd packages/archlinux | ||
echo "cnquery: $(cat cnquery/PKGBUILD | grep orignalVersion=)" | ||
|
@@ -84,7 +79,7 @@ jobs: | |
commit_email: ${{ secrets.AUR_EMAIL }} | ||
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }} | ||
commit_message: ${{ needs.setup.outputs.version }} | ||
force_push: "true" | ||
force_push: 'true' | ||
- name: Publish cnspec AUR package | ||
if: ${{ !inputs.skip }} | ||
uses: KSXGitHub/[email protected] | ||
|
@@ -95,7 +90,7 @@ jobs: | |
commit_email: ${{ secrets.AUR_EMAIL }} | ||
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }} | ||
commit_message: ${{ needs.setup.outputs.version }} | ||
force_push: "true" | ||
force_push: 'true' | ||
- name: Publish mondoo AUR package | ||
if: ${{ !inputs.skip }} | ||
uses: KSXGitHub/[email protected] | ||
|
@@ -106,8 +101,9 @@ jobs: | |
commit_email: ${{ secrets.AUR_EMAIL }} | ||
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }} | ||
commit_message: ${{ needs.setup.outputs.version }} | ||
force_push: "true" | ||
assets: packages/archlinux/mondoo/mondoo.sh | ||
force_push: 'true' | ||
assets: | ||
packages/archlinux/mondoo/mondoo.sh | ||
packages/archlinux/mondoo/LICENSE.html | ||
packages/archlinux/mondoo/OSS-LICENSES.tar.xz | ||
packages/archlinux/mondoo/mondoo.service | ||
packages/archlinux/mondoo/mondoo.service |
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
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
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
Oops, something went wrong.