Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

github-actions released this x days ago #148

Closed
jnsmalm opened this issue Aug 12, 2021 · 2 comments
Closed

github-actions released this x days ago #148

jnsmalm opened this issue Aug 12, 2021 · 2 comments

Comments

@jnsmalm
Copy link

jnsmalm commented Aug 12, 2021

When creating a release, it says "github-actions released this x days ago" instead of "jnsmalm released this x days ago" (which is what I want). How can I fix this? I found another issue #141 which is the same thing, were it was said it was fixed. For me it seems it still doesn't work as expected.

This is my action:

name: Build

on: [push, pull_request]

jobs:
  build:
    runs-on: ubuntu-latest
    
    steps:
    - name: Checkout
      uses: actions/checkout@v2

    - name: Use Node.js
      uses: actions/setup-node@v1
      with:
        node-version: '14.x'

    - name: Build
      run: |
        npm install
        npm run build
    - name: Test Release
      uses: softprops/action-gh-release@v1
      with:
        files: dist/*.js
        token: ${{ secrets.GITHUB_TOKEN }}
        draft: true
@softprops
Copy link
Owner

This action defaults to the default token github actions provides which is created by a githun-actions user.

To get a custom name you’ll have to create a custom personal access token as the GitHub user you’d like me see, store that in a repo secret , and reference in this action in a with.token attribute

@jnsmalm
Copy link
Author

jnsmalm commented Aug 12, 2021

Thanks for clearing this up!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants