A GitHub Action for quickly installing and configuring the Pantheon CLI tool, Terminus.
In order to avoid deprecation warnings, it's recommended to use the
setup-php
action rather than rely
on the version of PHP that is installed by default on GH runners.
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
- name: Install Terminus
uses: pantheon-systems/terminus-github-actions@main
with:
pantheon-machine-token: ${{ secrets.PANTHEON_MACHINE_TOKEN }}
- name: List sites
runs: terminus site:list
By default, this action installs the latest version of Terminus that has been
released on GitHub. You can provide a specific version of Terminus to install
using the terminus-version
input:
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
- name: Install Terminus
uses: pantheon-systems/terminus-github-actions@main
with:
pantheon-machine-token: ${{ secrets.PANTHEON_MACHINE_TOKEN }}
terminus-version: 2.6.5
- name: List sites
runs: terminus site:list
Big thanks to Gareth Jones and Ackama for the initial development work.