Skip to content

Commit

Permalink
force version bumping in PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
tlnagy authored Jun 29, 2021
1 parent d0c3ac4 commit 18e6b45
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/VersionVigilante_pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: VersionVigilante

on: pull_request

jobs:
VersionVigilante:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: julia-actions/setup-julia@latest
- name: VersionVigilante.main
id: versionvigilante_main
run: |
julia -e 'using Pkg; Pkg.add("VersionVigilante")'
julia -e 'using VersionVigilante; VersionVigilante.main("https://github.com/${{ github.repository }}")'
- name: ✅ Un-Labeller (if success)
if: (steps.versionvigilante_main.outputs.compare_versions == 'success') && (success() || failure())
continue-on-error: true
uses: actions/[email protected]
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.issues.removeLabel({...context.issue, name: 'needs version bump'})
- name: ❌ Labeller (if failure)
if: (steps.versionvigilante_main.outputs.compare_versions == 'failure') && (success() || failure())
continue-on-error: true
uses: actions/[email protected]
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.issues.addLabels({...context.issue, labels: ['needs version bump']})

2 comments on commit 18e6b45

@tlnagy
Copy link
Owner Author

@tlnagy tlnagy commented on 18e6b45 Jun 29, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/39898

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.4.1 -m "<description of version>" 18e6b45a98885533452a2b7c42fd44af97405b47
git push origin v0.4.1

Please sign in to comment.