-
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 <nierro92@gmail.com>
- Loading branch information
Showing
2 changed files
with
52 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,23 @@ | ||
name: 'syscalls-bumper' | ||
description: 'Update supported syscalls in falcosecurity libs.' | ||
|
||
inputs: | ||
repo-root: | ||
description: Repo root path | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: robinraju/release-downloader@v1.8 | ||
with: | ||
tag: ${{ github.action_ref }} | ||
fileName: syscalls-bumper_*_linux_amd64.tar.gz | ||
tarBall: false | ||
zipBall: false | ||
extract: true | ||
|
||
- name: Bump syscalls | ||
shell: bash | ||
run: | | ||
./syscalls-bumper --repo-root ${{ inputs.repo-root }} --overwrite |