Skip to content

Commit

Permalink
Merge pull request #116 from BlueBrain/cron-workflow
Browse files Browse the repository at this point in the history
Fix 'keep alive' workflow and tox4 fix
  • Loading branch information
AurelienJaquier committed Jan 11, 2023
2 parents 35524d9 + f565a68 commit c66b3ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/keep-alive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ jobs:
datethen=`date -d "-50 days" --utc +%FT%TZ`
echo "datelimit=$datethen" >> $GITHUB_ENV
- name: setup git config
if: github.event.base.repo.updated_at <= env.datelimit
if: github.event.repository.pushed_at <= env.datelimit
run: |
# setup the username and email.
git config user.name "Github Actions Keepalive Bot"
git config user.email "<>"
- name: commit IF last commit is older than 50 days
if: github.event.base.repo.updated_at <= env.datelimit
if: github.event.repository.pushed_at <= env.datelimit
run: |
git commit -m "Empty commit to keep the gihub workflows alive" --allow-empty
git push origin master
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[tox]
envlist = py3-{functional,style,syntax}
minversion = 4

[gh-actions]
python =
Expand All @@ -22,9 +23,9 @@ deps =
docs,upload_docs,firefox: sphinx
docs,upload_docs,firefox: sphinx-bluebrain-theme
upload_docs: docs-internal-upload>=0.0.8
whitelist_externals =
allowlist_externals =
make
passenv = https_proxy USER KRB5CCNAME
passenv = https_proxy, USER, KRB5CCNAME
commands =
make clean

Expand Down

0 comments on commit c66b3ab

Please sign in to comment.