test-room-7 / action-update-file Goto Github PK
View Code? Open in Web Editor NEWUpdate (i.e. commit and push) files on GitHub
License: MIT License
Update (i.e. commit and push) files on GitHub
License: MIT License
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?
The action gives warnings in relation to deprecated set-output.
However according to the above link the action/core package needs to be bumped to v1.10.0 or higher
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
.
Would be great if there was option to respect .gitignore to avoid accidental file additions.
Hello!
I tried using the script and I liked the result, except that when copying binary files (gzipped javascript), they break.
Is it possible to fix this?
Workflow file: https://github.com/dukess/bsb_lan/blob/master/.github/workflows/localization.yaml
While running an action I get the following error/warning:
Node.js 12 actions are deprecated. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/. Please update the following actions to use Node.js 16: test-room-7/action-update-file
- 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.
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!
I just copy your update code and always get this
Check here: fabiocaccamo/python-codicefiscale@e3448e1
The files are committed even if they are not changed, could be possible to avoid it?
I'm trying to commit a file but a generic error message is being thrown
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 }}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.