Skip to content

Add GRIB2 Ice Severity with no bitsPerValue (#89) #21

Add GRIB2 Ice Severity with no bitsPerValue (#89)

Add GRIB2 Ice Severity with no bitsPerValue (#89) #21

Workflow file for this run

# Creates a new bugfix release whenever a push is made to master.
name: release
# Controls when the action will run.
on:
push:
branches:
- master
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
release:
if: ${{ github.event.label.name != 'norelease' }}
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Calculate next version
run: |
git pull
export CURRENT_VERSION=$(cat version.txt)
export THIS_VERSION=$(echo $CURRENT_VERSION | awk -F. -v OFS=. '{$NF++;print}')
echo "THIS_VERSION=$THIS_VERSION" >> $GITHUB_ENV
- name: Store next version
run: |
echo ${{ env.THIS_VERSION }} > version.txt
git config user.name "GitHub Actions"
git config user.email "actions@users.noreply.github.com"
git commit -am "Automated release - advance the release version."
git push
- name: Cut release
uses: softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5
with:
tag_name: v${{ env.THIS_VERSION }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build_index:
needs: release
name: Build test-data index
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v2
- name: install iris-grib
run: |
source $CONDA/bin/activate base
conda install -q -y -c conda-forge iris-grib
- name: generate index
working-directory: indexing
run: |
git pull
$CONDA/bin/python generate_index.py
- name: Store index
run: |
git config user.name "GitHub Actions"
git config user.email "actions@users.noreply.github.com"
git commit -am "Automated index - update index."
git push