From 400461ea25b57bb59ee53fc80179d28c059016f3 Mon Sep 17 00:00:00 2001 From: Federico Di Pierro Date: Thu, 2 Nov 2023 11:59:15 +0100 Subject: [PATCH] new: added a composite action. Signed-off-by: Federico Di Pierro --- .github/workflows/test.yml | 29 +++++++++++++++++++++++++++++ action.yml | 23 +++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 .github/workflows/test.yml create mode 100644 action.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..8bffb3d --- /dev/null +++ b/.github/workflows/test.yml @@ -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 diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..0b651d7 --- /dev/null +++ b/action.yml @@ -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