@@ -20,9 +20,40 @@ name: "Build and test Tensorflow"
2020# * To avoid duplicate jobs running when both push and PR is satisfied, we use this:
2121# * https://github.com/orgs/community/discussions/26940#discussioncomment-5686753
2222on :
23- workflow_call :
23+ push :
24+ branches : [main]
25+ paths :
26+ - " .github/**"
27+ - " ML-Frameworks/tensorflow-aarch64/**"
28+ - " ML-Frameworks/utils/**"
29+ # Exclusions (must come after the includes):
30+ - " !ML-Frameworks/tensorflow-aarch64/CHANGELOG.md"
31+ - " !ML-Frameworks/tensorflow-aarch64/README.md"
32+ - " !ML-Frameworks/tensorflow-aarch64/welcome.txt"
33+ pull_request :
34+ types : [opened, synchronize, reopened]
35+ paths :
36+ - " .github/**"
37+ - " ML-Frameworks/tensorflow-aarch64/**"
38+ - " ML-Frameworks/utils/**"
39+ # Exclusions (must come after the includes):
40+ - " !ML-Frameworks/tensorflow-aarch64/CHANGELOG.md"
41+ - " !ML-Frameworks/tensorflow-aarch64/README.md"
42+ - " !ML-Frameworks/tensorflow-aarch64/welcome.txt"
43+ schedule :
44+ # * minute (0-59) hour (0-23) day (1-31) month (1-12) day of the week (0 - 6)
45+ # * cron jobs run on the default (main) branch.
46+ # * set to run at 5am UCT
47+ - cron : " 0 5 * * *"
48+ # * allow manual trigger of workflow when needed.
2449 workflow_dispatch :
2550
51+ # * Stop stale workflows when pull requests are updated: https://stackoverflow.com/a/70972844
52+ # * Does not apply to the main branch.
53+ concurrency :
54+ group : ${{ github.workflow }}-${{ github.ref }}
55+ cancel-in-progress : ${{ github.ref != 'refs/heads/main' }}
56+
2657# Declare default permissions as read only.
2758permissions : read-all
2859
4071 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4172 with :
4273 path : Tool-Solutions
74+
4375 - name : Set up Docker
4476 uses : docker/setup-docker-action@v4
4577
0 commit comments