kopepasah / setup-pantheon-terminus

GitHub Action for setting up the Pantheon CLI tool, Terminus: https://github.com/pantheon-systems/terminus

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ubuntu-latest now uses PHP 7.4

nichol-fluke opened this issue · comments

Hello! On 12/22/20, when this action began installing terminus, I started seeing Error: The process 'sudo' failed with exit code 1 . I had not seen this previously. I found that the update on ubuntu-latest (18.04 to 20.04) now uses PHP 7.4 and 8.0:
actions/runner-images#1816
In my own repo's yaml file, from your workflow example, I have changed the PHP version and it seems to work, I no longer get the error.
- name: Installing PHP
uses: shivammathur/setup-php@master
with:
php-version: '7.4'

Same issue for me - haven't tried the workaround specifying the PHP version, but this is broken without it.

Confirmed the solution presented by @nichol-fluke works. Before I didn't need to install PHP separately for Terminus to install successfully, but now this is necessary to have the Terminus install work. Rather than ubuntu-latest I switched to ubuntu-18.04 and still have the problem without installing PHP specifically in my job.

Seconding @TheLastCicada 's comment -
Before I did not have to install PHP.
When I tried using ubuntu-18.04 and leaving out the PHP version it still did not work as it used to.

Thanks for reporting. I will not be able to look at this for at least a couple weeks, but happy to review and PRs that address this issue.

Any updates? I just ran into this trying to set up a new GitHub Action. I think for now I can get away with skipping the Terminus stuff, but it would be nice to have resolution on this.

@seanr I've not hit this issue myself, but we created a new action for setting up Terminus for other reasons, that you could try - it hopefully shouldn't have this issue, but if it does you can open an issue and we'll look into it :)

This Action has been deprecated. Please now use the official Pantheon Systems Action for installing and using Terminus.