Giter VIP home page Giter VIP logo

aur-publish-docker-action's Introduction

AUR publish docker action

This action can publish an AUR package.

Requirements

It depends on an environment variable called GITHUB_REF to be present and it should also contain a semantic version in the format v0.0.0 to work properly.

This tag should also comply with rules established to publish versions on AUR repository.

You should add to your secrets an SSH private key that match your key uploaded to your AUR account, so this action can commit and push to it.

Inputs

package_name

Required The AUR package name you want to update.

commit_username

Required The username to use when creating the new commit.

commit_email

Required The email to use when creating the new commit.

ssh_private_key

Required Your private key with access to AUR package.

Example usage

name: aur-publish

on:
  push:
    tags:
      - '*'

jobs:
  aur-publish:
    runs-on: ubuntu-latest
    steps:
      - name: Publish AUR package
        uses: guumaster/aur-publish-docker-action@v1
        with:
          package_name: my-awesome-package
          commit_username: 'Github Action Bot'
          commit_email: [email protected]
          ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}

aur-publish-docker-action's People

Contributors

guumaster avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

maniaciachao zu1k

aur-publish-docker-action's Issues

Use perl to process multi-line sha256.

Regular expression sha256sums=.*$ only match from sha256sums= to EOL. Usually, more than one sources can be found in an AUR package. We usually intend to match and replace multiple lines, but sed command has its limits. Handling such case with sed command could be tricky.

However, you can simply use perl instead of sed like below:

perl -i -0pe "s/sha256sums=[\s\S][^\)]*\)/$(makepkg -g 2>/dev/null)/" PKGBUILD

P.S. I'm not going to make a PR because my fork differs a lot from yours.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.