Nightly Snapshot #105
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Nightly Snapshot | |
on: | |
schedule: | |
- cron: "59 23 * * *" | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
tag: | |
name: Make snapshot release | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [ '3.9' ] | |
steps: | |
- name: Get current date | |
id: date | |
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Poetry | |
run: | | |
curl -sSL https://install.python-poetry.org | python3 - | |
- name: Install dependencies | |
run: | | |
poetry install | |
- name: Set PYTHONPATH | |
run: | | |
echo "PYTHONPATH=$PYTHONPATH:$(pwd)/src" >> $GITHUB_ENV | |
- name: Generate merged and expanded schemas | |
run: | | |
make expanded_schemas | |
- name: Make Snapshot | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: "build/general_schema.yaml, | |
build/BICAN_schema.yaml,build/CAP_schema.yaml" | |
body: "Nightly snapshot release. Draft only, please use a stable release instead." | |
allowUpdates: true | |
draft: true | |
makeLatest: false | |
name: "${{ steps.date.outputs.date }} SNAPSHOT" | |
removeArtifacts: true | |
tag: "snapshot" |