This repository has been archived by the owner on Mar 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2232 from comit-network/release/0.7.0
Release version 0.7.0
- Loading branch information
Showing
192 changed files
with
12,544 additions
and
11,264 deletions.
There are no files selected for viewing
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 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 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 |
---|---|---|
@@ -1,13 +1,14 @@ | ||
name: Assign PR to creator | ||
|
||
on: pull_request | ||
on: | ||
pull_request: | ||
types: opened | ||
|
||
jobs: | ||
automation: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Assign PR to creator | ||
uses: thomaseizinger/[email protected] | ||
if: github.event_name == 'pull_request' && github.event.action == 'opened' | ||
with: | ||
repo-token: ${{ secrets.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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: Security audit | ||
on: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
jobs: | ||
audit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/audit-check@v1 | ||
with: | ||
token: ${{ secrets.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 |
---|---|---|
@@ -0,0 +1,77 @@ | ||
name: "Draft new release" | ||
|
||
on: | ||
issues: | ||
types: [opened, labeled] | ||
|
||
jobs: | ||
draft-new-release: | ||
name: "Draft a new release" | ||
runs-on: ubuntu-latest | ||
# Only run for issues with a specific title and label. Not strictly required but makes finding the release issue again later easier. | ||
# There is also a whitelist that you may want to use to restrict, who can trigger this workflow. | ||
# Unfortunately, we cannot create an array on the fly, so the whitelist is just comma-separated. | ||
if: startsWith(github.event.issue.title, 'Release version') && contains(github.event.issue.labels.*.name, 'release') && contains('thomaseizinger,bonomat,D4nte,da-kami,luckysori,tcharding,rishflab', github.event.issue.user.login) | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Extract version from issue title | ||
run: | | ||
TITLE="${{ github.event.issue.title }}" | ||
VERSION=${TITLE#Release version } | ||
echo "::set-env name=RELEASE_VERSION::$VERSION" | ||
- name: Create release branch | ||
run: git checkout -b release/${{ env.RELEASE_VERSION }} | ||
|
||
- name: Update changelog | ||
uses: thomaseizinger/[email protected] | ||
with: | ||
version: ${{ env.RELEASE_VERSION }} | ||
|
||
- name: Initialize mandatory git config | ||
run: | | ||
git config user.name "GitHub actions" | ||
git config user.email [email protected] | ||
- name: Bump version in Cargo.toml | ||
uses: thomaseizinger/[email protected] | ||
with: | ||
version: ${{ env.RELEASE_VERSION }} | ||
manifest: cnd/Cargo.toml | ||
|
||
- name: Update Cargo.lock | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: update | ||
args: --package cnd | ||
|
||
- name: Commit changelog and manifest files | ||
id: make-commit | ||
run: | | ||
git add CHANGELOG.md cnd/Cargo.toml Cargo.lock | ||
git commit --message "Prepare release ${{ env.RELEASE_VERSION }}" | ||
echo "::set-output name=commit::$(git rev-parse HEAD)" | ||
- name: Push new branch | ||
run: git push origin release/${{ env.RELEASE_VERSION }} --force | ||
|
||
- name: Create pull request | ||
uses: thomaseizinger/[email protected] | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
head: release/${{ env.RELEASE_VERSION }} | ||
base: master | ||
title: ${{ github.event.issue.title }} | ||
reviewers: ${{ github.event.issue.user.login }} # By default, we request a review from the person who opened the issue. You can replace this with a static list of users. | ||
# Write a nice message to the user. | ||
# We are claiming things here based on the `publish-new-release.yml` workflow. | ||
body: | | ||
Hi @${{ github.event.issue.user.login }}! | ||
This PR was created in response to this release issue: #${{ github.event.issue.number }}. | ||
I've updated the changelog and bumped the versions in the manifest files in this commit: ${{ steps.make-commit.outputs.commit }}. | ||
Merging this PR will create a GitHub release and upload any assets that are created as part of the release build. |
Oops, something went wrong.