Skip to content

Commit

Permalink
Merge pull request #276 from jasminabrar/scheduled-actions
Browse files Browse the repository at this point in the history
Schedule docker rebuild to run daily + remove unneeded docker build trigger
  • Loading branch information
lukasc-ubc authored Dec 7, 2023
2 parents 6958b21 + ececf0c commit 8be9969
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/Docker_Image.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Create and Publish Docker Image

on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
release:
types:
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/EBeam_Tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,6 @@ jobs:
run: docker exec ebeam_test klayout -zz -r pymacros/EBeam_Lib_PCellTests.py || echo "KLAYOUT_EXIT_CODE=$?" >> $GITHUB_ENV
continue-on-error: true

- name: Trigger Docker build workflow if new pcells were added on a push or a merged PR #since merged commmits act as a direct push
if: github.event_name == 'push' && steps.added-files.outputs.added_files != ''
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh workflow run Docker_Image.yml

- name: Stop container and remove it
run: |
docker stop ebeam_test
Expand All @@ -88,4 +82,4 @@ jobs:
if [ $KLAYOUT_EXIT_CODE -ne 0 ]; then
echo "KLayout exited with non-zero exit code"
exit 1
fi
fi

0 comments on commit 8be9969

Please sign in to comment.