-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Federico Di Pierro <[email protected]>
- Loading branch information
Showing
2 changed files
with
57 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,29 @@ | ||
name: Test composite action | ||
on: | ||
pull_request: | ||
paths: | ||
- 'action.yml' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test-composite-action: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: master | ||
repository: falcosecurity/libs | ||
path: libs | ||
|
||
- name: bump syscalls | ||
uses: ./ | ||
with: | ||
repo-root: libs | ||
|
||
- name: show diff | ||
working-directory: libs | ||
run: git diff |
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,28 @@ | ||
name: 'syscalls-bumper' | ||
description: 'Update supported syscalls in falcosecurity libs.' | ||
|
||
outputs: | ||
path: | ||
description: Path for the output file | ||
value: ${{ steps.generate.outputs.path }} | ||
|
||
inputs: | ||
repo-root: | ||
description: Repo root path | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: robinraju/[email protected] | ||
with: | ||
tag: ${{ github.action_ref }} | ||
fileName: syscalls-bumper_*_linux_amd64.tar.gz | ||
tarBall: false | ||
zipBall: false | ||
extract: true | ||
target: release.tar.gz | ||
|
||
- name: Bump syscalls | ||
run: | | ||
./syscalls-bumper --repo-root ${{ inputs.repo-root }} --overwrite |