Skip to content
This repository was archived by the owner on Nov 18, 2024. It is now read-only.

Commit f70d9e9

Browse files
authored
Merge pull request #44 from bradennapier/beta
Release beta
2 parents 8c9ac9b + 288f8ba commit f70d9e9

File tree

5 files changed

+31
-6
lines changed

5 files changed

+31
-6
lines changed

.github/workflows/release.yml

+22
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,28 @@ on:
66
- next
77
- beta
88
jobs:
9+
pr:
10+
name: Create Release PR
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Check For PR
14+
env:
15+
REF: ${{ env.GITHUB_BASE_REF }}
16+
BASE: master
17+
GITHUB_TOKEN: ${{ secrets.BOT_GIT_TOKEN }}
18+
run: |
19+
BRANCH=${GITHUB_REF##*/}
20+
[[ "$BRANCH" == "$BASE" ]] && exit 0;
21+
if [[ "$BRANCH" == "alpha" ]]; then
22+
BASE="beta"
23+
fi
24+
echo "Check If PR exists for $BRANCH --> $BASE"
25+
if [[ "$(gh pr list -R "$GITHUB_REPOSITORY" --base "$BASE" --state open --label "Release $BRANCH")" == "" ]]; then
26+
echo "Creating PR $BRANCH --> $BASE"
27+
RESULT=$(gh api repos/"${GITHUB_REPOSITORY}"/pulls -F head="$BRANCH" -F base="$BASE" -F title="Release $BRANCH" -F body="This PR was generated automatically. Merging it will transition $BRANCH into ${BASE}.")
28+
PR_NUM=$(echo $RESULT | jq -r '.number')
29+
printf '{"labels": ["Release %s"]}' $BRANCH | gh api repos/"${GITHUB_REPOSITORY}"/issues/"${PR_NUM}"/labels --input -
30+
fi
931
release:
1032
name: Release
1133
runs-on: ubuntu-latest

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
runs-on: ubuntu-latest
4444
steps:
4545
- uses: actions/checkout@v2
46-
- uses: bradennapier/[email protected]
46+
- uses: bradennapier/[email protected].2-beta.1
4747
```
4848
4949
## Features
@@ -131,7 +131,7 @@ jobs:
131131
runs-on: ubuntu-latest
132132
steps:
133133
- uses: actions/checkout@v2
134-
- uses: bradennapier/[email protected]
134+
- uses: bradennapier/[email protected].2-beta.1
135135
```
136136

137137
## Examples
@@ -149,7 +149,7 @@ jobs:
149149
runs-on: ubuntu-latest
150150
steps:
151151
- uses: actions/checkout@v2
152-
- uses: bradennapier/[email protected]
152+
- uses: bradennapier/[email protected].2-beta.1
153153
```
154154

155155
### Environment Variables
@@ -162,7 +162,7 @@ jobs:
162162
runs-on: ubuntu-latest
163163
steps:
164164
- uses: actions/checkout@v2
165-
- uses: bradennapier/[email protected]
165+
- uses: bradennapier/[email protected].2-beta.1
166166
env:
167167
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
168168
```
@@ -175,7 +175,7 @@ jobs:
175175
runs-on: ubuntu-latest
176176
steps:
177177
- uses: actions/checkout@v2
178-
- uses: bradennapier/[email protected]
178+
- uses: bradennapier/[email protected].2-beta.1
179179
env:
180180
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
181181
with:

lib/utils.js

+1
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ function processLintResults(engine, report, data) {
125125
else {
126126
rule.annotations.push(annotation);
127127
}
128+
console.warn('ESLint Annotation: ', annotation);
128129
annotations.push(annotation);
129130
}
130131
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "typescript-action",
3-
"version": "3.4.1",
3+
"version": "3.4.2-beta.1",
44
"private": true,
55
"description": "TypeScript template action",
66
"main": "lib/run.js",

src/utils.ts

+2
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,8 @@ export function processLintResults(
200200
rule.annotations.push(annotation);
201201
}
202202

203+
console.warn('ESLint Annotation: ', annotation);
204+
203205
annotations.push(annotation);
204206
}
205207
}

0 commit comments

Comments
 (0)