Comments (6)
Last successful run: https://github.com/phpstan/phpstan/actions/runs/4204946177
I'm not sure if that's the reason for the failures, but I'm not sure about this line:
revision: ${{ github.event.release.target_commitish }}
GitHub Actions put 1.10.x
there (even for releases on 1.9.x), but it should be a commit SHA instead?
from action-homebrew-bump-formula.
In the successful run we have:
==> Fetching /home/linuxbrew/.linuxbrew/Homebrew...
From https://github.com/Homebrew/brew
* [new branch] faster_tests -> origin/faster_tests
ebed4f564..a59f5eb52 master -> origin/master
* [new branch] type-requirement -> origin/type-requirement
* [new tag] 3.6.21 -> 3.6.21
* [new tag] 4.0.0 -> 4.0.0
* [new tag] 4.0.1 -> 4.0.1
==> Resetting /home/linuxbrew/.linuxbrew/Homebrew...
Switched to and reset branch 'master'
branch 'master' set up to track 'origin/master'.
Your branch is up to date with 'origin/master'.
==> Fetching /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core...
From https://github.com/Homebrew/homebrew-core
fea3[23](https://github.com/phpstan/phpstan/actions/runs/4204946177/jobs/7296330987#step:2:26)3bc2c..c2f709e[26](https://github.com/phpstan/phpstan/actions/runs/4204946177/jobs/7296330987#step:2:29)eb master -> origin/master
==> Resetting /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core...
Reset branch 'master'
branch 'master' set up to track 'origin/master'.
In the failed run we only have:
==> Fetching /home/linuxbrew/.linuxbrew/Homebrew...
From https://github.com/Homebrew/brew
8ff2e29aa..853b33bcd master -> origin/master
* [new branch] shellcheck-shfmt -> origin/shellcheck-shfmt
* [new branch] sponsors-maintainers-man-completions -> origin/sponsors-maintainers-man-completions
* [new tag] 4.0.2 -> 4.0.2
* [new tag] 4.0.3 -> 4.0.3
==> Resetting /home/linuxbrew/.linuxbrew/Homebrew...
Switched to and reset branch 'master'
branch 'master' set up to track 'origin/master'.
Your branch is up to date with 'origin/master'.
There seems to be no core-tap on Ubuntu runner images anymore and it is most likely a bug in brew after transition to installing from API.
from action-homebrew-bump-formula.
I can reproduce this in container:
linuxbrew@79a9a22eb3a3:~$ brew tap
homebrew/core
linuxbrew@79a9a22eb3a3:~$ brew untap homebrew/core
Untapping homebrew/core...
Untapped 3 commands and 6533 formulae (6,885 files, 601.0MB).
linuxbrew@79a9a22eb3a3:~$ brew tap
linuxbrew@79a9a22eb3a3:~$ brew bump-formula-pr --version=1.20.0 phpstan
Warning: bump-formula-pr is a developer command, so Homebrew's
developer mode has been automatically turned on.
To turn developer mode off, run:
brew developer off
Error: No available formula with the name "phpstan".
linuxbrew@79a9a22eb3a3:~$ brew tap homebrew/core
==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
https://github.com/Homebrew/brew#donations
==> Tapping homebrew/core
Cloning into '/home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core'...
remote: Enumerating objects: 1422011, done.
remote: Counting objects: 100% (750/750), done.
remote: Compressing objects: 100% (339/339), done.
remote: Total 1422011 (delta 430), reused 724 (delta 411), pack-reused 1421261
Receiving objects: 100% (1422011/1422011), 546.14 MiB | 10.55 MiB/s, done.
Resolving deltas: 100% (991979/991979), done.
Tapped 3 commands and 6534 formulae (6,886 files, 600.8MB).
linuxbrew@79a9a22eb3a3:~$ brew bump-formula-pr --version=1.20.0 phpstan
==> Downloading https://github.com/phpstan/phpstan/releases/download/1.20.0/phpstan.phar
curl: (22) The requested URL returned error: 404
Error: Failed to download resource "phpstan"
Download failed: https://github.com/phpstan/phpstan/releases/download/1.20.0/phpstan.phar
Ideally this should be fixed in brew, a "costly" workaround for you (for now) would be to execute brew tap homebrew/core
before the Action. Also another option is to transform this Action to be a container-based one, or you could run it in container yourself (look at the workflows in this repo for example).
from action-homebrew-bump-formula.
Anyway, this commit 0a4c212 should fix this but will also prolong the Action execution I'm afraid.
from action-homebrew-bump-formula.
Thank you for analyzing and fixing the issue. As soon as PHPStan makes another release, we'll know if it worked. 🙂
from action-homebrew-bump-formula.
The last release successfully triggered a formula bump:
- https://github.com/phpstan/phpstan/actions/runs/4253699787/jobs/7398911113
- Homebrew/homebrew-core#124048
Thank you very much for the quick fix! I'm closing the issue now.
from action-homebrew-bump-formula.
Related Issues (20)
- 'Formulae must have a ref! (ArgumentError)' HOT 1
- Failing to update formula HOT 3
- Specifying which repo to make PR from HOT 3
- [BUG] Spurious "error: failed to push some refs" HOT 3
- refusing to allow a Personal Access Token to create or update workflow .github/workflows/autobump.yml without workflow scope HOT 1
- GITHUB_TOKEN permissions used by this action
- Please HELP~ HOT 1
- GitHub::API::AuthenticationFailedError HOT 4
- Link to associated GitHub release where available in PR body HOT 1
- Strange behavior following action execution HOT 5
- Error: Query must include 'is:issue' or 'is:pull-request' HOT 4
- Fails when url doesn't contain exact version string
- Support for Homebrew Cask HOT 2
- What permissions are required to execute the action? HOT 1
- Add support for `--no-fork` HOT 1
- Error: undefined method `git_origin_branch' for #<Pathname:...> HOT 3
- Update existing PR if it exists HOT 3
- Allow editing the Git user name and email HOT 1
- Tap `homebrew/core` with `--force` option HOT 1
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 action-homebrew-bump-formula.