Skip to content

Commit

Permalink
Update .github/workflows/VersionVigilante.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Dec 8, 2023
1 parent bddf25d commit 144eb30
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/VersionVigilante.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,29 @@ jobs:
using Pkg
Pkg.add("VersionVigilante")
using VersionVigilante
VersionVigilante.main("https://github.com/${{ github.repository }}", master_branch="main")
VersionVigilante.main("https://github.com/${{ github.repository }}", master_branch="master")
shell: julia {0}
- name: ✅ Un-Labeller (if success)
if: (steps.versionvigilante_main.outputs.compare_versions == 'success') && (success() || failure())
continue-on-error: true
uses: actions/github-script@v6.4.1
uses: actions/github-script@v7
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.issues.removeLabel({...context.issue, name: 'needs version bump'})
github.rest.issues.removeLabel({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
name: 'needs version bump'
})
- name: ❌ Labeller (if failure)
if: (steps.versionvigilante_main.outputs.compare_versions == 'failure') && (success() || failure())
continue-on-error: true
uses: actions/github-script@v6.4.1
uses: actions/github-script@v7
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.issues.addLabels({...context.issue, labels: ['needs version bump']})
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['needs version bump']
})

0 comments on commit 144eb30

Please sign in to comment.