Comments (3)
I put github/codeql-action/init@v2
into the files now, and when I run the updater, it throws an exception (though itβs not clear from the context itβs the codeql one, I just ran the updater on an almost-copy of the .github/workflows/
directory in another repo that had all but the codeql one, and it worked fine):
2023-04-17T02:42:06.7521618Z return _run_code(code, main_globals, None,
2023-04-17T02:42:06.7521932Z File "/usr/local/lib/python3.10/runpy.py", line 86, in _run_code
2023-04-17T02:42:06.7522221Z exec(code, run_globals)
2023-04-17T02:42:06.7522489Z File "/app/src/main.py", line 473, in <module>
2023-04-17T02:42:06.7522765Z actions_version_updater.run()
2023-04-17T02:42:06.7523035Z File "/app/src/main.py", line 59, in run
2023-04-17T02:42:06.7523296Z self._update_workflow(workflow_path)
2023-04-17T02:42:06.7523603Z File "/app/src/main.py", line 149, in _update_workflow
2023-04-17T02:42:06.7523917Z new_version, new_version_data = self._get_new_version(
2023-04-17T02:42:06.7524233Z File "/app/src/main.py", line 360, in _get_new_version
2023-04-17T02:42:06.7524547Z latest_release_data = self._get_latest_version_release(
2023-04-17T02:42:06.7524884Z File "/app/src/main.py", line 290, in _get_latest_version_release
2023-04-17T02:42:06.7525152Z latest_release = next(
2023-04-17T02:42:06.7525414Z File "/app/src/main.py", line 292, in <lambda>
2023-04-17T02:42:06.7525740Z lambda r: self._release_filter_function(r, parsed_current_version),
2023-04-17T02:42:06.7526069Z File "/app/src/main.py", line 271, in filter_func
2023-04-17T02:42:06.7526395Z return any(check(release_tag, current_version) for check in checks)
2023-04-17T02:42:06.7526713Z File "/app/src/main.py", line 271, in <genexpr>
2023-04-17T02:42:06.7527035Z return any(check(release_tag, current_version) for check in checks)
2023-04-17T02:42:06.7527344Z File "/app/src/main.py", line 255, in <lambda>
2023-04-17T02:42:06.7527723Z checks.append(lambda r, c: parse(r["tag_name"]).major > c.major)
2023-04-17T02:42:06.7528161Z AttributeError: 'LegacyVersion' object has no attribute 'major'
The beginning is cut off, perhaps earlier in the log, but unsure.
from github-actions-version-updater.
The action now displays warning messages in such cases and will suggest the latest release instead of crashing. You can also skip github/codeql-action/init@v2
update by using ignore
option.
from github-actions-version-updater.
OK, not crashing, and ignoring it is one thing, but maybe have a whitelist of actions for which to not look at the releases but at tags instead would make sense?
from github-actions-version-updater.
Related Issues (20)
- error: pathspec 'refs/pull/5/merge' did not match any file(s) known to git
- Feature Request: be able to scan actions defined within a composite actions HOT 2
- "fatal: not in a git directory" after several successful runs HOT 12
- Configuration class has mutable default fields
- dependabot supports github actions HOT 1
- Document fine grained access token permissions HOT 2
- Do not update "azure/login" to last version HOT 2
- Include release tag in comment when using `release-commit-sha`
- Version update of gh-actions incorrectly placed HOT 2
- Failed while checking for updates
- Self hosted : Error: fatal not in a git directory HOT 2
- Feature request: return the number of the PR created as an output
- Does not run when scheduled? HOT 2
- Action seems to fail when unable to update previously removed workflows HOT 4
- Appending minor/patch when already added HOT 1
- question: update GitHub actions without pull request HOT 1
- Not updating to new versions
- Not creating PRs any more HOT 1
- Delete previous pull request
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from github-actions-version-updater.