-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update files from
.github
to v0.8.0 [skip ci]
- Loading branch information
1 parent
3a3276b
commit d9ad98b
Showing
14 changed files
with
106 additions
and
357 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
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/[email protected] | ||
with: | ||
GITHUB_LOGIN: 47erbot | ||
GITHUB_TOKEN: ${{ secrets.ADMIN_GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
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]' |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.