Skip to content

Commit

Permalink
Merge pull request #74 from drashland/improvements
Browse files Browse the repository at this point in the history
chore: Doc, output and code improvements
  • Loading branch information
crookse authored Nov 1, 2020
2 parents e5f261f + c545f09 commit fc9e561
Show file tree
Hide file tree
Showing 26 changed files with 838 additions and 920 deletions.
228 changes: 0 additions & 228 deletions .README.md

This file was deleted.

8 changes: 4 additions & 4 deletions .github/workflows/bumper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
update-dep:
strategy:
matrix:
deno: ["1.4.6"]
deno: ["1.5.0"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -20,8 +20,8 @@ jobs:
- name: Update Dependencies
run: deno run --allow-net --allow-read --allow-write mod.ts update

- name: Update Dependency Version Strings
run: deno run --allow-read --allow-write --allow-net console/update_deno_version_strings.ts
- name: Bump Versions
run: deno run --allow-read --allow-write --allow-net console/bumper_ci_service.ts

- name: Create Pull Request
uses: peter-evans/create-pull-request@v2
Expand All @@ -30,4 +30,4 @@ jobs:
commit-message: Update dependencies
title: Update dependencies
body: This was auto-generated by GitHub Actions.
branch: update-dependencies
branch: update-dependencies
4 changes: 2 additions & 2 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
deno: ["1.4.6"]
deno: ["1.5.0"]
runs-on: ${{ matrix.os }}

steps:
Expand All @@ -32,7 +32,7 @@ jobs:
linting:
strategy:
matrix:
deno: ["1.4.6"]
deno: ["1.5.0"]
# Doesn't need to be checked in all OS
runs-on: ubuntu-latest

Expand Down
45 changes: 45 additions & 0 deletions .github/workflows/pre_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: pre-release

on:
create

jobs:

# Make a PR to master from a new branch with changes, and delete the created one
update-versions:

# Only run when a release-v* branch is created, and not by drashbot
if: contains(github.ref, 'release-v') && !contains(github.event.sender.login, 'drashbot')

strategy:
matrix:
deno: ["1.4.2"]

runs-on: ubuntu-latest

steps:

- name: Checkout master
uses: actions/checkout@v2
with:
ref: master

- name: Delete Remote Release Branch
run: git push --delete origin ${{ github.ref }}

- name: Install Deno
uses: denolib/setup-deno@v2
with:
deno-version: ${{ matrix.deno }}

- name: Bump Versions
run: deno run -A ./console/bumper_ci_service.ts --version=${{ github.ref }} # version passed so we know what the new release version will be

- name: Create Pull Request
uses: peter-evans/create-pull-request@v2
with:
token: ${{ secrets.CI_USER_PAT }}
commit-message: bump versions
title: bump versions
body: This was auto-generated by GitHub Actions.
branch: release # Can change it to ${{ github.ref }} to be the branch name, but then we need to figure out how to stop this worjflow running when it creates another "release-vx.x.x" branch
Loading

0 comments on commit fc9e561

Please sign in to comment.