Skip to content

Commit

Permalink
Only trigger container test workflow for changes in container build
Browse files Browse the repository at this point in the history
Signed-off-by: Marcela Melara <marcela.melara@intel.com>
  • Loading branch information
marcelamelara committed Aug 30, 2024
1 parent 19ea311 commit 62513cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test-buildenv-l1-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ on:
push:
branches:
- main
paths:
- 'build-container/**'

permissions:
id-token: write
attestations: write
jobs:
build:
if: "contains(github.event.commits[0].message, '[test]')"
runs-on: ubuntu-latest

steps:
Expand Down
2 changes: 1 addition & 1 deletion build-container/hello.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This file is used fo testing measurements within containers

def hello():
print('Hello, World.')
print('Hello, World!')

if __name__ == '__main__':
hello()

0 comments on commit 62513cc

Please sign in to comment.