From 4e1ca0c03fdc7a34b9496714fde5ecab700a259b Mon Sep 17 00:00:00 2001 From: Mayccoll Date: Sat, 23 Jan 2021 11:44:30 -0500 Subject: [PATCH] add github action use only checkout v2 --- .github/workflows/actions.sh | 26 -------------------------- .github/workflows/actions.yml | 12 +++++++----- 2 files changed, 7 insertions(+), 31 deletions(-) delete mode 100644 .github/workflows/actions.sh diff --git a/.github/workflows/actions.sh b/.github/workflows/actions.sh deleted file mode 100644 index fb2ac67..0000000 --- a/.github/workflows/actions.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/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 "" diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 4dc3ec7..608c9ac 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -12,10 +12,12 @@ jobs: 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 + - uses: actions/checkout@v2 + - run: | + git config user.name github-actions[bot] + git config user.email github-actions[bot]@github.com + git add . + git commit -m "------- Generate themes.json -------" + git push