Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a manual workflow for smarten, #521

Merged
merged 1 commit into from
Mar 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .github/workflows/dependencies/EcmaTC49.Smarten.tar
Binary file not shown.
43 changes: 43 additions & 0 deletions .github/workflows/smart-quotes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Convert to Smart Quotes

# Triggers the workflow on push to spec version branches.
# test-branch can be used to test this workflow.
on:
workflow_dispatch:
inputs:
reason:
description: 'The reason for running the workflow'
required: true
default: 'Manual run'

jobs:
create-pull-request-for-smarten-only:
runs-on: windows-2022
permissions:
statuses: write
contents: write
pull-requests: write
env:
DOTNET_NOLOGO: true

steps:
- name: Check out our repo
uses: actions/checkout@v2

- name: Setup .NET 6.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x

- name: Smarten quotes
id: smarten-quote
run: |
cd tools
./run-smarten.sh
shell: bash

- name: Create pull request
uses: peter-evans/create-pull-request@v3.4.1
with:
title: 'Run smarten on demand'
body: 'Run the smarten action to create smart quotes'
12 changes: 6 additions & 6 deletions .github/workflows/update-on-merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ jobs:
with:
java-version: 15.0

- name: Smarten quotes
id: smarten-quote
run: |
cd tools
./run-smarten.sh
shell: bash
# - name: Smarten quotes
# id: smarten-quote
# run: |
# cd tools
# ./run-smarten.sh
# shell: bash

- name: Renumber sections
id: renumber-sections
Expand Down