Skip to content

Commit

Permalink
Automatically refresh website Team page on commit to default branch (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
iMacTia committed Aug 21, 2021
1 parent 94b7bf4 commit dd1552f
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 22 deletions.
44 changes: 22 additions & 22 deletions .github/workflows/ci.yml
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:

push:
branches: [main, 1.x, 0.1x]
branches: [ main, 1.x, 0.1x ]

env:
GIT_COMMIT_SHA: ${{ github.sha }}
Expand All @@ -19,37 +19,37 @@ jobs:
BUNDLE_WITHOUT: development:test

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2

- name: Set up Ruby 2.7
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
- name: Set up Ruby 2.7
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true

- name: Rubocop
run: bundle exec rubocop --format progress
- name: Rubocop
run: bundle exec rubocop --format progress

- name: Yard-Junk
run: bundle exec yard-junk --path lib
- name: Yard-Junk
run: bundle exec yard-junk --path lib

build:
needs: [linting]
needs: [ linting ]
runs-on: ubuntu-latest
name: build ${{ matrix.ruby }}
strategy:
fail-fast: false
matrix:
ruby: ['2.6', '2.7', '3.0']
ruby: [ '2.6', '2.7', '3.0' ]

steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true

- name: Test
continue-on-error: ${{ matrix.experimental }}
run: bundle exec rake
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true

- name: Test
continue-on-error: ${{ matrix.experimental }}
run: bundle exec rake

14 changes: 14 additions & 0 deletions .github/workflows/refresh_team_page.yml
@@ -0,0 +1,14 @@
name: Refresh Team Page

on:
push:
branches: [ main ]

jobs:
build:
name: Refresh Contributors Stats
runs-on: ubuntu-latest
steps:
- name: Call GitHub API
run: |
curl "https://api.github.com/repos/${{ github.repository }}/stats/contributors"

0 comments on commit dd1552f

Please sign in to comment.