Skip to content

Commit

Permalink
Update files from .github to v0.8.0 [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandrohdezma authored and actions-user committed Jul 24, 2020
1 parent c374ae7 commit 1668dff
Show file tree
Hide file tree
Showing 14 changed files with 106 additions and 357 deletions.
52 changes: 0 additions & 52 deletions .github/labels.yml

This file was deleted.

4 changes: 3 additions & 1 deletion .github/pr-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
# If you want to suggest a change, please open a PR or issue in that repository

enhancement: ['enhancement/*', 'feature/*']
documentation: ['docs/*', '.docs/*', 'doc/*']
documentation: ['docs/*', 'doc/*']
breaking-change: ['breaking/*', 'break/*']
bug: ['bug/*', 'fix/*']
tests: ['test/*', 'tests/*']
dependency-update: ['dep/*', 'dependency/*', 'dependency-update/*']
scala-steward: ['update/*']
17 changes: 0 additions & 17 deletions .github/workflows/bot-prs-auto-approve.yml

This file was deleted.

72 changes: 0 additions & 72 deletions .github/workflows/changelog.yml

This file was deleted.

64 changes: 29 additions & 35 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,48 +11,42 @@ on:

jobs:
test:
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.ADMIN_GITHUB_TOKEN }}
REQUIRES_JEKYLL_CI: ${{secrets.REQUIRES_JEKYLL_CI}}
REQUIRES_CODECOV: ${{secrets.REQUIRES_CODECOV}}
steps:
- name: Checkout project
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Fetch tags
run: git fetch --tags
- name: Set up Ruby 2.6
uses: actions/setup-ruby@v1
with:
ruby-version: 2.6
- name: Set up jekyll
if: env.REQUIRES_JEKYLL_CI != null
run: |
gem install jekyll -v 4
- name: Set up codecov
if: env.REQUIRES_CODECOV != null
run: |
curl -s https://codecov.io/bash > .codecov
chmod +x .codecov
ref: ${{ github.head_ref }}
- name: Label PR
if: github.event_name == 'pull_request'
uses: TimonVS/pr-labeler-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Scala
uses: olafurpg/setup-scala@v7
- name: Cache dependencies
uses: actions/cache@v1
with:
path: ~/.cache/coursier/v1
key: ${{ runner.os }}-coursier-${{ hashFiles('build.sbt') }}-${{ hashFiles('project/*.scala') }}
restore-keys: ${{ runner.os }}-coursier-
- name: Cache .sbt
uses: actions/cache@v1
- name: Setup Ruby
uses: actions/setup-ruby@v1
- name: Setup yq
run: sudo snap install yq
- name: Run pre-conditions
run: test -f .github/actions.yml && eval "$(yq r .github/actions.yml -D "true" pre.ci)" || true
- name: Run scalafmt on Scala Steward PRs
if: github.event.pull_request.user.login == '47erbot' && contains(github.event.pull_request.body, 'Scala Steward')
run: sbt "scalafixEnable; fix" || sbt "scalafmtAll; scalafmtSbt" || true
- name: Push changes
uses: stefanzweifel/git-auto-commit-action@v4.1.3
with:
path: ~/.sbt
key: ${{ runner.os }}-sbt-${{ hashFiles('build.sbt') }}-${{ hashFiles('project/*.scala') }}
restore-keys: ${{ runner.os }}-sbt-
commit_message: Run formatter/linter
- name: Run checks
run: sbt ci-test
- name: Upload codecov reports
if: env.REQUIRES_CODECOV != null
run: |
./.codecov -X gcov
env:
GITHUB_TOKEN: ${{ secrets.ADMIN_GITHUB_TOKEN }}
- name: Run post-conditions
run: test -f .github/actions.yml && eval "$(yq r .github/actions.yml -D "true" post.ci)" || true
- name: Automerge Scala Steward PRs
if: success() && github.event_name == 'pull_request' && contains(github.event.pull_request.body, 'Scala Steward')
uses: ridedott/merge-me-action@v1.1.36
with:
GITHUB_LOGIN: 47erbot
GITHUB_TOKEN: ${{ secrets.ADMIN_GITHUB_TOKEN }}
79 changes: 53 additions & 26 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,47 +5,74 @@
name: Update documentation

on:
push:
branches: master
tags: v**
release:
types: [published]
repository_dispatch:
types: [docs]

jobs:
documentation:
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.ADMIN_GITHUB_TOKEN }}
steps:
- name: Checkout project
uses: actions/checkout@v2
with:
token: ${{ secrets.ADMIN_GITHUB_TOKEN }}
ref: master
fetch-depth: 0
- name: Fetch tags
run: git fetch --tags
- name: Setup Scala
uses: olafurpg/setup-scala@v7
- name: Cache dependencies
uses: actions/cache@v1
with:
path: ~/.cache/coursier/v1
key: ${{ runner.os }}-coursier-${{ hashFiles('build.sbt') }}-${{ hashFiles('project/*.scala') }}
restore-keys: ${{ runner.os }}-coursier-
- name: Cache .sbt
uses: actions/cache@v1
with:
path: ~/.sbt
key: ${{ runner.os }}-sbt-${{ hashFiles('build.sbt') }}-${{ hashFiles('project/*.scala') }}
restore-keys: ${{ runner.os }}-sbt-
- name: Setup Ruby
uses: actions/setup-ruby@v1
- name: Setup github-changelog-generator
run: gem install github_changelog_generator -v 1.15.0
- name: Setup yq
run: sudo snap install yq
- name: Run pre-conditions
run: test -f .github/actions.yml && eval "$(yq r .github/actions.yml -D "true" pre.docs)" || true
- name: Generate documentation
run: sbt ci-docs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOWNLOAD_INFO_FROM_GITHUB: true
- name: Create Documentation Pull Request
uses: peter-evans/create-pull-request@v2
- name: Run post-conditions
run: test -f .github/actions.yml && eval "$(yq r .github/actions.yml -D "true" post.docs)" || true
- name: Generate changelog
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
repo: ${{ github.repository }}
run: |
github_changelog_generator \
--user ${repo%/*} \
--project ${repo#*/} \
--token $GITHUB_TOKEN \
--exclude-labels "duplicate,question,invalid,wontfix,auto-update,auto-changelog,auto-documentation" \
--configure-sections \
'{
"breaking": {
"prefix": "⚠️ **Breaking changes**",
"labels": ["breaking-change"]
},
"enhancement": {
"prefix": "🚀 **Features**",
"labels": ["enhancement"]
},
"documentation": {
"prefix": "📘 **Documentation**",
"labels": ["documentation"]
},
"bug": {
"prefix": "🐛 **Bug Fixes**",
"labels": ["bug"]
},
"dependency": {
"prefix": "📈 **Dependency updates**",
"labels": ["dependency-update", "scala-steward"]
}
}'
- name: Push changes
uses: stefanzweifel/git-auto-commit-action@v4.1.3
with:
token: ${{ secrets.ADMIN_GITHUB_TOKEN }}
commit-message: Update documentation and other files
title: 'Update documentation and other files'
labels: auto-documentation
branch: auto-update-docs
body: Update documentation and other files with latest changes.
commit_message: 'Update documentation, changelog and other files [skip ci]'
17 changes: 0 additions & 17 deletions .github/workflows/pr-labeler.yml

This file was deleted.

Loading

0 comments on commit 1668dff

Please sign in to comment.