Awesome
GitHub Actions for Pixela (a-know/pi)
<img width="400" alt="GitHub Actions for Pixela" src="./images/ogp.svg">- Pixela | Record and Track your habits or effort. All by API.
- a-know/pi: Official CLI tool for Pixela
This Pixela Setup Action can install a-know/pi to a virtual machine of GitHub Actions. Linux (Ubuntu), macOS, and Windows are supported.
OS (runs-on) | ubuntu-18.04 | macos-latest | windows-latest |
---|---|---|---|
Support | ✅️ | ✅️ | ✅️ |
Table of Contents
<!-- START doctoc generated TOC please keep comment here to allow auto update --> <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> <!-- END doctoc generated TOC please keep comment here to allow auto update -->Getting started
Add Pixela User Token
- Go to Settings > Secrets.
- Add your
PIXELA_USER_TOKEN
as a new secret.
Example Workflow
Workflow file: .github/workflows/pixela.yml
name: pixela
on:
push:
branches:
- main
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.2.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:
- main
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.2.0'
- name: Increment
env:
PIXELA_USER_TOKEN: ${{ secrets.PIXELA_USER_TOKEN }}
run: |
pi pixel increment -u <username> -g '${{ matrix.graph_id }}'
<div align="right">
<a href="#table-of-contents">Back to TOC ☝️</a>
</div>
Example Graphs
CI Test on Linux Passed
CI Test on macOS Passed
CI Test on Windows Passed
<div align="right"> <a href="#table-of-contents">Back to TOC ☝️</a> </div>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
<div align="right">
<a href="#table-of-contents">Back to TOC ☝️</a>
</div>