Giter Site home page Giter Site logo

github-release-action's Introduction

Hi there, I'm Lars ๐Ÿ‘‹

This is the place where I tinker and opensource things.
Projects are not related to my employer.

  • ๐Ÿ”ญ Iโ€™m currently working on trying not to break things ๐Ÿคฃ
  • ๐ŸŒฑ Iโ€™m learning every day
  • ๐Ÿ‘ฏ Iโ€™m looking for inspiring things
  • โšก Fun fact: I made the worlds first Android hand warmer, using C.

Contact me:
๐Ÿ“ซ E-Mail (PGP)
๐Ÿ˜ @[email protected]


My code is used in

Map with global usage

github-release-action's People

Contributors

dependabot[bot] avatar elgohr avatar github-actions[bot] avatar michaelcurrin avatar oleg-alexandrov avatar renovate-bot avatar renovate[bot] avatar

Stargazers

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

Watchers

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

github-release-action's Issues

hub: not found - exit code 127

Hi
I tried this action in my workflow this way:

      - name: Create a Release
        uses: elgohr/Github-Release-Action@v4
        env:
          GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
        with:
          title: "v/${{ steps.release.outputs.version }}"

When running it fails with

Run $GITHUB_ACTION_PATH/entrypoint.sh
  $GITHUB_ACTION_PATH/entrypoint.sh
  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
  env:
    CINEXT_PIPELINE: MajorRelease
    JAVA_HOME: /home/runner/actions-runner/_work/_tool/Java_Zulu_jdk/11.0.20-8/x64
    JAVA_HOME_11_X64: /home/runner/actions-runner/_work/_tool/Java_Zulu_jdk/11.0.20-8/x64
    GITHUB_TOKEN: 
    INPUT_TITLE: v/23.5.1
/home/runner/actions-runner/_work/_actions/elgohr/Github-Release-Action/v4/entrypoint.sh: 2: hub: not found
Error: Process completed with exit code 127.

Do I miss something or how can this be fixed ?

This action doesn't work

This action doesn't work, or documentation are very bad.
I follow the example, and my log show me errors about token.

Current runner version: '2.163.1'
Prepare workflow directory
Prepare all required actions
Download action repository 'actions/checkout@v1'
Download action repository 'actions/setup-node@v1'
Download action repository 'elgohr/[email protected]'
##[error](Line: 8, Col: 17):
##[error](Line: 13, Col: 8):
##[error](Line: 8, Col: 17): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.GITHUB_TOKEN
##[error](Line: 13, Col: 8): Unrecognized named-value: 'inputs'. Located at position 1 within expression: inputs.release
##[error]Fail to load /home/runner/work/_actions/elgohr/Github-Release-Action/3.0/action.yml

Don't waste hours like me on this action use this one which works very well.

help: failed to run git: fatal: not a git repository (or any of the parent directories): .git

I'm just trying to replace: deprecated uses: actions/create-release@v1 with yours.

The relevant part:

  release:
    needs: check-test
    runs-on: ubuntu-20.04
    steps:
      - name: Get current date
        id: date
        run: echo "date=$(date +'%Y.%-m.%-d')" >> $GITHUB_OUTPUT
        # run: echo "::set-output name=date::$(date +'%Y.%-m.%-d')"

      - name: Create tag
        # will only create a new release if the commit message is 'new_release' to master branch
        if: github.ref == 'refs/heads/master' && contains(github.event.head_commit.message, 'new_tag')
        uses: actions/github-script@main
        with:
          # github-token: ${{ github.token }} # optional
          script: |
            github.git.createRef({
            owner: context.repo.owner,
            repo: context.repo.repo,
            ref: "refs/tags/${{ steps.date.outputs.date }}",
            sha: context.sha
            })

      - name: Create Release
        # will only create a new release if the commit message is 'new_release' to master branch
        if: github.ref == 'refs/heads/master' && contains(github.event.head_commit.message, 'new_release')
        id: create_release
        # uses: elgohr/Github-Release-Action@main
        uses: actions/create-release@main
        env:
          # This token is provided by Actions, you do not need to create your own token
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          # title: ${{ steps.date.outputs.date }}
          tag_name: ${{ steps.date.outputs.date }}
          release_name: Release ${{ steps.date.outputs.date }}
          draft: false
          prerelease: false

The commented lines are the one that still works but when I try Github-Release-Action I get this error:
Screenshot 2023-10-24 at 19 51 11

Choose file path

Hi,

thanks for this actions!

Is it possible to choose the path of the files that will be included in release pack? To avoid pack the entire repo

Thanks!

Need more documentation

This repository does not explain clearly what it does, and what the effect would be. For example, it should say that after it is triggered, a certain release will appear with a certain link. It also does not say if this release packages dependencies or not.

Unauthorized 401

I think I have not set something up correctly because I'm getting an unauthorized error.

This is my release.yml file:

name: Publish Release
on: [push]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - name: Create a Release
      uses: elgohr/Github-Release-Action@master
      env:
        GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
      with:
        args: MyReleaseMessage

and I get this error:

/usr/bin/docker run --name a33c1cd19ccebbd934c2ab4024de496df75fa_04351d --label 8a33c1
--workdir /github/workspace --rm -e GITHUB_TOKEN -e INPUT_ARGS -e INPUT_RELEASE -e HOME
-e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER
-e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_ACTOR
-e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME
-e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_WORKSPACE
-e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF
-e GITHUB_PATH -e GITHUB_ENV -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP
-e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL
-e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock"
-v "/home/runner/work/_temp/_github_home":"/github/home"
-v "/home/runner/work/_temp/_github_workflow":"/github/workflow"
-v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands"
-v "/home/runner/work/PyDV/PyDV":"/github/workspace" 8a33c1:cd19ccebbd934c2ab4024de496df75fa MyReleaseMessage
Error creating release: Unauthorized (HTTP 401)
Bad credentials
github.com username: github.com password for  (never stored): 

I'm new with using github actions and would greatly appreciate any direction.

Release Loop

Hi! When pushing a release, (my args are RELEASE), it automatically creates a new release action, again. It does not stop unless I manually stop it. Maybe make an option for tag name so it's separate from the ARG?

How Can I have name of tag for args?

name: Publish Release
on: [push]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - name: Create a Release
      uses: elgohr/Github-Release-Action@master
      env:
        GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
      with:
        args: MyReleaseMessage

Say the name of the tag is v0.001
I want that to be args
How to do that?
It seems Environment variables can't be used

How to not run tests on release?

Hi,

I am using Maven, and I have the same setup as you. How can I publish without running tests?

The issue with Maven, as I do mvn package, I do testing, even if I exclude tests from there, why would I want to make "double-run" of tests?

How can I exclude run from test GitHub Actions when publishing release?

Thank you in advance!

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.