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 <[email protected]>
  • Loading branch information
FedeDP committed Nov 2, 2023
1 parent 9d30926 commit 66ec696
Show file tree
Hide file tree
Showing 2 changed files with 57 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
28 changes: 28 additions & 0 deletions action.yml
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

0 comments on commit 66ec696

Please sign in to comment.