Skip to content

Commit

Permalink
use changie version json instead of github api (#83)
Browse files Browse the repository at this point in the history
* this removes the need for the github token
* tweak workflows for new requirements and run build
  • Loading branch information
miniscruff authored Feb 4, 2023
1 parent 0f91d2a commit b6d52c8
Show file tree
Hide file tree
Showing 17 changed files with 57 additions and 962 deletions.
5 changes: 5 additions & 0 deletions .changes/v1.0.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## v1.0.1 on 2023-02-04

### Fixed

* [#82](https://github.com/miniscruff/changie-action/issues/82) Remove requirement for github token when fetching latest version
6 changes: 5 additions & 1 deletion .changie.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ changelogPath: CHANGELOG.md
versionExt: md
versionFormat: '## {{.Version}} on {{.Time.Format "2006-01-02"}}'
kindFormat: '### {{.Kind}}'
changeFormat: '* {{.Body}}'
changeFormat: '* [#{{.Custom.Issue}}](https://github.com/miniscruff/changie-action/issues/{{.Custom.Issue}}) {{.Body}}'
kinds:
- label: Added
auto: minor
Expand All @@ -19,6 +19,10 @@ kinds:
auto: patch
- label: Security
auto: patch
custom:
- key: Issue
type: int
minInt: 1
newlines:
afterChangelogHeader: 1
afterKind: 1
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@ on:
push:
branches:
- main
paths-ignore:
- '**.md'
paths: [ CHANGELOG.md ]
pull_request:
paths-ignore:
- '**.md'
paths: [ CHANGELOG.md ]
workflow_dispatch:

jobs:
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/gen-release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,19 @@ jobs:
with:
version: latest
args: batch auto
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Merge changes
uses: ./
with:
version: latest
args: merge
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Get the latest version
id: latest
uses: ./
with:
version: latest
args: latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ jobs:
with:
version: latest
args: latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Release
uses: softprops/action-gh-release@v1
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,3 @@ jobs:
uses: ./
with:
args: '--version'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html),
and is generated by [Changie](https://github.com/miniscruff/changie).

## v1.0.1 on 2023-02-04

### Fixed

* [#82](https://github.com/miniscruff/changie-action/issues/82) Remove requirement for github token when fetching latest version

## v1.0.0 on 2023-01-26

No new features or changes, moving to v1 as the project is being used and
Expand Down
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,19 @@ jobs:
with:
version: latest
args: batch auto
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Merge changes
uses: miniscruff/changie-action@v1
with:
version: latest
args: merge
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Get the latest version
id: latest
uses: miniscruff/changie-action@v1
with:
version: latest
args: latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
Expand Down
8 changes: 1 addition & 7 deletions dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

562 changes: 0 additions & 562 deletions dist/licenses.txt

Large diffs are not rendered by default.

Loading

0 comments on commit b6d52c8

Please sign in to comment.