Skip to content

LibXSPEC_Warmabs_jll build 2.58.5+1 #5

LibXSPEC_Warmabs_jll build 2.58.5+1

LibXSPEC_Warmabs_jll build 2.58.5+1 #5

name: Auto-register
on:
push:
branches:
- main
permissions:
contents: read
issues: write
pull-requests: write
jobs:
autoregister:
name: Julia ${{ matrix.version }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
julia-version: ['1.11']
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.julia-version }}
- run: |
git config --global user.email "isamborg@cosroe.com"
git config --global user.name "Isamborg"
julia -e '
import Pkg
Pkg.add(url="https://github.com/GunnarFarneback/LocalRegistry.jl")
using LocalRegistry
Pkg.Registry.add(Pkg.RegistrySpec(url="https://github.com/astro-group-bristol/AstroRegistry/"))
register(pwd(), registry="AstroRegistry", push=false)
'
- name: Create new branch
run: |
cd ~/.julia/registries/AstroRegistry
git checkout -b "bot/libxspec_warmabs_jll"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.SECRET_PR_TOKEN }}
repository: "astro-group-bristol/AstroRegistry"
directory: "/home/runner/.julia/registries/AstroRegistry"
branch: "bot/libxspec_warmabs_jll"
- name: Create pull request
run: |
cd ~/.julia/registries/AstroRegistry
gh pr create -B main \
--title "New Version: LibXSPEC_Warmabs_jll" \
--body "Automated pull request." \
-H "bot/libxspec_warmabs_jll"
env:
GITHUB_TOKEN: ${{ secrets.SECRET_PR_TOKEN }}