Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
activity

GitHub Action

Pixela pi action

v2.0.0

license release GitHub release date GitHub Actions status codecov

GitHub Actions for Pixela (a-know/pi)

GitHub Actions for Pixela

Table of Contents

Table of Contents

TOC is generated with DocToc

Getting started

Add Pixela User Token

  1. Go to Settings > Secrets.
  2. Add your PIXELA_USER_TOKEN as a new secret.

Example Workflow

Workflow file: .github/workflows/pixela.yml

name: pixela

on:
  push:
    branches:
      - master

jobs:

  increment:
    runs-on: ubuntu-18.04
    steps:
      - uses: actions/checkout@v2

      - name: Setup a-know/pi
        uses: peaceiris/actions-pixela@v2
        with:
          pi_version: '1.1.0'

      - name: Increment
        env:
          PIXELA_USER_TOKEN: ${{ secrets.PIXELA_USER_TOKEN }}
        run: |
          pi pixel increment -u <username> -g <graph-id>

Matrix build

name: 'Test'

on:
  push:
    branches:
      - master

jobs:

  test:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os:
          - 'ubuntu-18.04'
          - 'macos-latest'
          - 'windows-latest'
        include:
          - os: 'ubuntu-18.04'
            graph_id: 'gha-pi-ci-linux'
          - os: 'macos-latest'
            graph_id: 'gha-pi-ci-macos'
          - os: 'windows-latest'
            graph_id: 'gha-pi-ci-win'
    steps:

      - uses: actions/checkout@v2

      - name: Setup pi
        uses: peaceiris/actions-pixela@v2
        with:
          pi_version: '1.1.0'

      - name: Increment
        env:
          PIXELA_USER_TOKEN: ${{ secrets.PIXELA_USER_TOKEN }}
        run: |
          pi pixel increment -u <username> -g '${{ matrix.graph_id }}'

Example Graphs

CI Test on Linux Passed

GitHub Actions for Pixela CI Linux

CI Test on macOS Passed

GitHub Actions for Pixela CI macOS

CI Test on Windows Passed

GitHub Actions for Pixela CI Windows

Git Push Count

peaceiris blog repository (private)

Push count of peaceiris's blog repository (private repository)

CHANGELOG

License

About Maintainer

Maintainer Notes

Run npm and git commit commands on a container.

On Host

# Docker
make build
make run
make run cmd="env"
make test
make commit msg="chore: Add Makefile"

# Release
./release.sh