Skip to content

Bump julia-actions/setup-julia from 1 to 2 #483

Bump julia-actions/setup-julia from 1 to 2

Bump julia-actions/setup-julia from 1 to 2 #483

name: VersionVigilante
on: pull_request
jobs:
VersionVigilante:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
- name: VersionVigilante.main
id: versionvigilante_main
run: |
using Pkg
Pkg.add("VersionVigilante")
using VersionVigilante
VersionVigilante.main(
"https://github.com/${{ github.repository }}";
master_branch="main",
)
shell: julia --color=yes {0}
- name: ✅ Un-Labeller (if success)
if: (steps.versionvigilante_main.outputs.compare_versions == 'success') && (success() || failure())
continue-on-error: true
uses: actions/github-script@v7
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
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@v7
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['needs version bump']
})