Skip to content

Commit

Permalink
adds auto pub action to be triggered by auto deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
carolinebridge committed Jan 3, 2024
1 parent d7f1dc7 commit b444b18
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 2 deletions.
38 changes: 38 additions & 0 deletions .github/bump.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
release:
title-prefix: 'v'
title-postfix: ''
body-title: ''
body-when-empty-changes: 'No changes'
initial-version: '1.5.9'
tag-prefix: 'v'
tag-postfix: ''
branch:
base-branch: 'main'
version-branch-prefix: 'v'
version-branch-postfix: ''
create-major-version-branch: false
create-minor-version-branch: true
bump-version-commit-prefix: 'v'
bump-version-commit-postfix: ''
categories:
- title: ''
commits:
- 'Upgrading JBrowse version'
changes-prefix: 'Automatic JBrowse dependency upgrade: '
bump:
default: 'minor'
major:
labels:
- 'major'
commits:
- 'major:'
minor:
labels:
- 'minor'
commits:
- 'minor: JBrowse version bump'
patch:
labels:
- 'patch'
commits:
- 'patch:'
30 changes: 30 additions & 0 deletions .github/workflows/auto_pub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Receive dispatch (publish)

on:
repository_dispatch:
types:
- auto_publish

jobs:
upgrade: # upgrades package files with new JBrowse version
runs-on: ubuntu-latest
steps:
- name: Upgrade dash_jbrowse version
uses: actions/checkout@v4
- run: |
sed -i 's|.*dash-jbrowse.*| "dash-jbrowse>=${{github.event.client_payload.version}}",|' requirements.txt
- name: Commit and push changes
run : |
git config --global user.name "cmdcolin"
git config --global user.email "[email protected]"
git add -A
git commit -m "Upgrading dash_jbrowse version"
git push
- name: Bump version
uses: MeilCli/bump-release-action@v1
with:
config_path: '.github/bump.yml'
bump: 'patch'
release:
needs: upgrade
uses: ./.github/workflows/release.yml
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ dmypy.json
# Pyre type checker
.pyre/


.DS_Store
.vscode

GRCh37_latest_genomic.sort.gff.gz
Expand Down
1 change: 0 additions & 1 deletion jbrowse_jupyter/tracks.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,6 @@ def get_track_data(df):
df["additional"] = ""
if "score" in df:
required.append("score")
# if df.dtypes["score"] != int:
if isinstance(df.dtypes["score"], numbers.Number):
raise TypeError("Score column must be a number.")
filtered = df[required]
Expand Down

0 comments on commit b444b18

Please sign in to comment.