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

❗❗❗ DEPRECATION NOTICE ❗❗❗

This action has been deprecated in favor of the offical Pantheon Systems action for terminus. On December 1st 2022, this repo will be archived (set to read-only).

Setup Pantheon Terminus ⚡

A Github Action for quickly installing and configuring the Pantheon CLI tool, Terminus.

Requirements

Usage

Using this action requires only calling within a workflow.

Workflow Example

The following is a Github Workflow example which run setup-pantheon-terminus, then login to Pantheon via a machine token.

name: Setup Terminus

on:
  push:
    branches:
    - main

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3

    - name: Setup Terminus
      uses: kopepasah/setup-pantheon-terminus@2

    - name: Login to Pantheon
      run: terminus auth:login -q --machine-token=${{ secrets.PANTHEON_MACHINE_TOKEN }}

    - name: List Sites
      if: success()
      run: terminus site:list

In the above example, PANTHEON_MACHINE_TOKEN is an encrypted secret added to the repo on Github, of which the value is the Machine Token generated by Pantheon.

License

Mozilla Public License 2.0

About

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

License:Mozilla Public License 2.0