Workflow file for this run
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
# -*- mode: yaml -*- | ||
name: Tag new version | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- builds | ||
jobs: | ||
bump-and-tag: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# - name: Checkout code | ||
# uses: actions/checkout@v2 | ||
# | ||
# - name: Parse commit message for bump type | ||
# run: | | ||
# if ${{ contains(github.event.head_commit.message, '[bump patch]') || contains(github.event.head_commit.message, '[ci build]') }}; then | ||
# echo "bump=patch" >> $GITHUB_ENV | ||
# elif ${{ contains(github.event.head_commit.message, '[bump minor]') }}; then | ||
# echo "bump=minor" >> $GITHUB_ENV | ||
# elif ${{ contains(github.event.head_commit.message, '[bump major]') }}; then | ||
# echo "bump=major" >> $GITHUB_ENV | ||
# fi | ||
# | ||
# - name: Bump and tag new version | ||
# if: ${{ env.bump }} | ||
# run: | | ||
# git config --global user.email "eman.github@gmail.com" | ||
# git config --global user.name "eman-bot" | ||
# | ||
# python ./utils/tag_new_version.py --bump ${{ env.bump }} | ||
- name: Trigger eman dev | ||
if: True | ||
uses: actions/github-script@v6 | ||
with: | ||
github-token: ${{ secrets.EMAN_DEV_TOKEN }} | ||
script: | | ||
await github.rest.actions.createWorkflowDispatch({ | ||
owner: 'cryoem', | ||
repo: 'eman-feedstock', | ||
workflow_id: 'update-version.yml', | ||
ref: 'mnt' | ||
# inputs: {new_version: process.env.new_version } | ||
}) |