Skip to content

Commit

Permalink
edit ci to run on pushes to main + run manually (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
phinate authored Jun 19, 2024
1 parent 9db9878 commit e13e70f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: Test Template Instance
name: CI

on:
workflow_dispatch:
pull_request:
push:
branches:
- main

Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/pre-commit-autoupdate.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
name: update pre-commit hooks

on:
workflow_dispatch:
schedule:
- cron: '*/5 3 * * *'

- cron: "*/5 3 * * *"

jobs:
update-template:
if: github.repository == 'alan-turing-institute/python-project-template'
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
python-version: "3.x"
- name: Install pre-commit
run: pip install pre-commit
- name: Update pre-commit hooks
Expand All @@ -30,5 +30,5 @@ jobs:
- name: Push changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
add_options: '-u'
commit_message: 'chore: update pre-commit hooks'
add_options: "-u"
commit_message: "chore: update pre-commit hooks"

0 comments on commit e13e70f

Please sign in to comment.