From 09a028fc6f306bf9c58d1b5b69f2211b88d779fc Mon Sep 17 00:00:00 2001 From: Kiko Beats Date: Thu, 15 Dec 2022 13:06:57 +0100 Subject: [PATCH] build: debug --- .github/workflows/contributors.yml | 33 ------------------------------ .github/workflows/test.yml | 26 +++++++++++++++++++++++ 2 files changed, 26 insertions(+), 33 deletions(-) delete mode 100644 .github/workflows/contributors.yml diff --git a/.github/workflows/contributors.yml b/.github/workflows/contributors.yml deleted file mode 100644 index 1a86ddf42..000000000 --- a/.github/workflows/contributors.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: contributors - -on: - pull_request: - branches: - - main - -env: - BRANCH_NAME: ${{ github.head_ref || github.ref_name }} - -jobs: - test: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 - token: ${{ secrets.GITHUB_TOKEN }} - - name: Setup Node.js - uses: actions/setup-node@v3 - with: - node-version: lts/* - - name: Contributors - run: | - git config --global user.email ${{ secrets.GIT_EMAIL }} - git config --global user.name ${{ secrets.GIT_USERNAME }} - npm run contributors - - name: Push changes - uses: ad-m/github-push-action@master - with: - github_token: ${{ secrets.GH_TOKEN }} - branch: ${{ github.head_ref }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e23908df7..84fd2ef34 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,6 +7,32 @@ on: branches: [main] jobs: + contributors: + if: "${{ !startsWith(github.event.head_commit.message, 'build: contributors') }}" + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + token: ${{ secrets.GITHUB_TOKEN }} + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: lts/* + - name: Contributors + run: | + echo ${{ secrets.GIT_EMAIL }} + echo ${{ secrets.GIT_USERNAME }} + # git config --global user.email ${{ secrets.GIT_EMAIL }} + # git config --global user.name ${{ secrets.GIT_USERNAME }} + # npm run contributors + # - name: Push changes + # uses: ad-m/github-push-action@master + # with: + # github_token: ${{ secrets.GH_TOKEN }} + # branch: ${{ github.head_ref }} + build: runs-on: ubuntu-latest