Coder Social home page Coder Social logo

action-update-file's People

Contributors

alexesprit avatar dependabot[bot] avatar github-actions[bot] avatar jnichols35 avatar luisfalconmx 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

Watchers

 avatar  avatar  avatar

action-update-file's Issues

TypeError: 'Commit' object is not subscriptable

When writing a simple text file and running this action, I encounter the following:

Traceback (most recent call last):
  File "/entrypoint.py", line 106, in <module>
    sys.exit(main())
  File "/entrypoint.py", line 97, in main
    commit_sha = pushed_change['commit'][:SHORT_SHA_LEN]
TypeError: 'Commit' object is not subscriptable

Is there some way around this?

Adding directory support

It would be nice if changing all files in a directory by specifying the directory could be supported. Right now if I have directory/ as my file-path I get this error: EISDIR: illegal operation on a directory, read.

Error: Resource not accessible by integration

      - name: Update resources
        uses: test-room-7/[email protected]
        with:
          file-path: version.properties
          branch : git-actions/versioning
          commit-msg: Update resources
          github-token: ${{ secrets.GITHUB_TOKEN }}

I am getting the following Error on running the above action
Resource not accessible by integration

Info: version.properties is the file that gets updated after the build is performed in the previous step. The requirement is to update this file in the branch.
This action takes place on push to this branch.

Update action to use Node.js 20

Using the action creates a deprecation warning:

Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: test-room-7/action-update-file@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.

Would be great if the Node.js version could be updated to avoid this.

Thanks!

Generic error message

I'm trying to commit a file but a generic error message is being thrown

image

I don't know if the issue is the file not being found, if the repo is not being found, the branch, etc.

Github action:

name: Update CONTRIBUTORS file

on:
  push:
    branches: [ development ]

jobs:
  main:
    runs-on: ubuntu-latest
    steps:
      - uses: minicli/action-contributors@v3
        name: "Update a projects CONTRIBUTORS file"
        env:
          CONTRIB_REPOSITORY: ${{ github.repository }}
          CONTRIB_OUTPUT_FILE: 'CONTRIBUTORS.md'

      - name: Commit changes
        uses: test-room-7/action-update-file@v1
        with:
          file-path: 'CONTRIBUTORS.md'
          commit-msg: '[actions] update contributors'
          github-token: ${{ secrets.WORKFLOW_TOKEN }}

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.