Skip to content

Check

Check #176

Workflow file for this run

name: Check
on:
schedule:
- cron: '0 5 * * *'
workflow_dispatch:
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: install python packages
run: |
python -m pip install --upgrade pip
python -m pip install .
- name: git credentials
uses: oleksiyrudenko/gha-git-credentials@v2-latest
with:
token: '${{ secrets.GITHUB_TOKEN }}'
- name: execute py script
run: |
echo `pwd`
python -m seamm_packaging
if [ -z "$(git status --porcelain)" ]; then
echo "Working directory clean"
else
echo "Changes detected"
ls -lR
echo "seamm.yml file:"
cat environments/seamm.yml
echo "\nseamm_pinned.yml file:"
cat environments/seamm_pinned.yml
git commit -a -F commit_message.txt
git push
# Create release
version=$(date '+%Y.%m.%d' | sed -e 's/\.0/./g')
gh release create -F commit_message.txt $version
gh workflow run Release.yaml
fi
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ZENODO_TOKEN: ${{ secrets.ZENODO_TOKEN }}