mirror of
https://github.com/Mayccoll/Gogh.git
synced 2023-08-10 21:12:46 +03:00
add github action
This commit is contained in:
parent
7edc81317b
commit
e6f0f53871
26
.github/workflows/actions.sh
vendored
Normal file
26
.github/workflows/actions.sh
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
YELLOW='\033[1;33m'
|
||||
RED='\033[1;31m'
|
||||
NC='\033[0m' # No Color
|
||||
|
||||
|
||||
printf "${YELLOW}| :::::::::: ${NC}\n"
|
||||
bash tools/generate.sh
|
||||
echo ""
|
||||
|
||||
git config --global user.email "github-actions[bot]@github.com"
|
||||
git config --global user.name "github-actions[bot]"
|
||||
echo ""
|
||||
|
||||
|
||||
printf "${YELLOW}| :::::::::: ${NC}\n"
|
||||
git add .
|
||||
git commit -m "------- Generate themes.json -------"
|
||||
git push
|
||||
echo ""
|
||||
|
||||
|
||||
printf "${YELLOW}| :::::::::: ${NC}\n"
|
||||
git status
|
||||
echo ""
|
21
.github/workflows/actions.yml
vendored
Normal file
21
.github/workflows/actions.yml
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
name: Generate themes.json
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
run:
|
||||
name: Lint with ESLint
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- name: Run bash script
|
||||
run: |
|
||||
chmod +x /github/workspace/.github/workflows/actions.sh
|
||||
/github/workspace/.github/workflows/actions.sh
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user