Skip to content

Commit

Permalink
new: added a composite action.
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
  • Loading branch information
FedeDP committed Nov 2, 2023
1 parent 9d30926 commit 400461e
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
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
23 changes: 23 additions & 0 deletions action.yml
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

0 comments on commit 400461e

Please sign in to comment.