Skip to content

Run Registrator.jl as a GitHub action. No server required.

License

Notifications You must be signed in to change notification settings

JuliaRegistries/RegistratorServerless.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RegistratorServerless

Stable Dev Build Status

RegistratorServerless is still experimental software and is not currently suitable for use in production.

Usage

Open a new issue on your registry where the title of the issue is something like this:

  • register MyUsername/MyPackage.jl
  • register MyUsername/MyPackage.jl branch=some-branch-name
  • register SomeOrganization/MyPackage.jl
  • register SomeOrganization/MyPackage.jl branch=some-branch-name

Please note: in order to register, you must be either:

  1. The owner of the repository
  2. A member of the organization that owns the repository

If you are a member of the organization, please make sure that your membership is public. For more details, please see these instructions for publicizing your organization membership.

Note: RegistratorServerless allows a user to register a package if they are a member of the organization that owns the repository, even if they do not actually have commit access (or any access, for that matter) to the repository.

Installing

In your registry, create a new file named .github/workflows/registrator_issues.yml with the following contents:

name: registrator_issues
on:
  issues:
    types: [opened, reopened]
jobs:
  registrator_issues:
    runs-on: ubuntu-latest
    steps:
      - uses: julia-actions/setup-julia@4469f5b9da960ff174efa528fea5889f8e873609 # v1.2.2
        with:
          version: 'nightly'
      - run: julia -e 'using Pkg; Pkg.add(Pkg.PackageSpec(url = "https://github.com/JuliaRegistries/RegistratorServerless.jl.git", rev = "master"))'
      - run: julia -e 'using RegistratorServerless; user = "${{ github.actor }}"; issue_title = "${{ github.event.issue.title }}"; @info("", issue_title, user); RegistratorServerless.register(; user=user, issue_title=issue_title)'
        env:
          REGISTRATOR_GITHUB_TOKEN: ${{ secrets.DILUMALUTHGEBOT_TOKEN }}
          REGISTRATOR_REGISTRY: 'JuliaRegistries/General'
          REGISTRATOR_SERVERLESS_REPO: 'JuliaRegistries/General'

About

Run Registrator.jl as a GitHub action. No server required.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages