jaliborc / action-general-autotag Goto Github PK
View Code? Open in Web Editor NEW:octocat: Automatically generate new tags by extracting their names from a given source file
License: MIT License
:octocat: Automatically generate new tags by extracting their names from a given source file
License: MIT License
When I want to use the action I get an error:
Warning: require() of ES modules is not supported.
require() of /home/runner/work/_actions/jaliborc/action-general-autotag/1.0.0/main.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
Instead rename main.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /home/runner/work/_actions/jaliborc/action-general-autotag/1.0.0/package.json.
Error: Not Found
Thanks for this plugin - it's been helpful to see how custom Actions can be built ๐
I'm getting an warning: ##[warning]tags.data is not iterable
and no tags are created, even though the version found is new and there are no tags in the repository. My guess is that this is the line that is creating the warning:
action-general-autotag/main.js
Line 42 in 52d20ad
At first I thought the failure might be because there were no tags in the repo, so I created a dummy tag to try that, but no luck.
The most recent example of a fail is here: https://github.com/lucidhq/openapi-validator/runs/438494561 < I've added debug output to the following step to check that version
and tagname
were returned - version
is found ok, but tagname
is always blank.
I've copied this from a working example here: https://github.com/jamescooke/openapi-validator-docker/runs/437118497
My guess is that this might be something to do with permissions - is that possible? Any pointers you could give would be very helpful.
GitHub Action shows warning when using jaliborc/[email protected]
and jaliborc/[email protected]
##[warning]Unexpected input(s) 'GITHUB_TOKEN', valid inputs are ['source_file', 'extraction_regex', 'tag_format', 'tag_message'] 2 Run jaliborc/[email protected]
yml-file
[...]
steps:
- uses: actions/checkout@master
- uses: jaliborc/[email protected]
id: autotag
with:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
source_file: "mix.exs"
extraction_regex: "version:\\s\"([\\d\\.]+)\""
tag_format: "v{version}"
[...]
I'm just starting a new project. I pointed this action at the version history, hoping to have it autogenerate git tags from the version number when I make my first release. But since there are no versions yet in the version history, the action fails the entire build. Why?
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.