Skip to content

Merge pull request #37 from mvertens/feature/add_dglc_noresm #27

Merge pull request #37 from mvertens/feature/add_dglc_noresm

Merge pull request #37 from mvertens/feature/add_dglc_noresm #27

Workflow file for this run

name: Bump version
on:
push:
branches:
- main
- noresm
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check branch name
id: check_branch_name
run: |
prefix=""
[ "${{ github.ref_name }}" == "main" ] && prefix="ccs_config_cesm"
[ "${{ github.ref_name }}" == "noresm" ] && prefix="ccs_config_noresm"
echo "TAG_PREFIX=$prefix" >> $GITHUB_OUTPUT
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
create_annotated_tag: true
default_bump: patch
release_branches: master,main,noresm
dry_run: false
tag_prefix: "${{ steps.check_branch_name.outputs.TAG_PREFIX }}"