diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a4bcdb..528eadf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog -## 0.0.1 (2022/09/05) +## v0.0.2 (2022/09/08) + +* Updated input case + +## v0.0.1 (2022/09/05) * Initial version diff --git a/README.md b/README.md index 027ac56..e6c90d4 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ To use the action, add following to your workflow file ```yaml - name: Delete Older Releases - uses: nikhilbadyal/ghaction-rm-releases@v0.0.1 + uses: nikhilbadyal/ghaction-rm-releases@v0.0.2 with: github_token: ${{ secrets.GH_TOKEN }} release_pattern: 'Build*' diff --git a/__test__/github.test.ts b/__test__/github.test.ts index 2a26488..69a7a51 100644 --- a/__test__/github.test.ts +++ b/__test__/github.test.ts @@ -19,7 +19,7 @@ beforeEach(() => { for (const k in repoEnv) { process.env[k] = repoEnv[k] } - octokit = github.getMyOctokit(process.env.github_token || '', { + octokit = github.getMyOctokit(process.env.GITHUB_TOKEN || '', { log: console }) }) diff --git a/action.yml b/action.yml index be337ea..679c3ab 100644 --- a/action.yml +++ b/action.yml @@ -2,10 +2,10 @@ name: 'Rm Release GitHub Action' description: 'A GitHub action to remove older releases with their tags.' author: 'nikhilbadyal' inputs: - github_token: + GITHUB_TOKEN: required: true description: 'Github token' - release_pattern: + RELEASE_PATTERN: required: true description: 'Regex pattern to match releases.'