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

Commit

Permalink
Merge pull request #47 from thadguidry/master
Browse files Browse the repository at this point in the history
Update package for Node.js v20
  • Loading branch information
thadguidry authored Apr 2, 2024
2 parents 7036dc1 + dfdd2fa commit 82600fe
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 33 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
Add following step to your workflow:

```yaml
- uses: dev-drprasad/delete-tag-and-release@v1.2
- uses: dev-drprasad/delete-tag-and-release@v1.1
with:
tag_name: v0.1.2 #(required) - The name of the tag to delete. This is expected to be solely the tag name, not the name of a git reference.
delete_release: true #(optional) default: true - also delete releases and their assets that are associated to the tag name
delete_release: true #(optional) default: true - also delete all releases and their assets that are associated to the tag name
repo: <owner>/<repoName> #(optional) default: repo running this action - the target repository.
github_token: ${{ secrets.GITHUB_TOKEN }} # (required) - a GitHub token with write access to the repo that needs to be modified
github_token: ${{ secrets.GITHUB_TOKEN }} # (required) - a GitHub token with write access to the repo where tags and releases will be searched and deleted
```
## Developing
Expand Down
4 changes: 2 additions & 2 deletions dist/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7867,7 +7867,7 @@ async function deleteReleases(octokit, qualifiedRepo, tagName) {
}
function getRepo() {
const inputRepoData = (0, import_core.getInput)("repo");
const [inputOwner, inputRepo] = inputRepoData == null ? void 0 : inputRepoData.split("/");
const [inputOwner, inputRepo] = inputRepoData?.split("/");
if (inputRepo && inputOwner) {
return {
repo: inputRepo,
Expand Down Expand Up @@ -7942,7 +7942,7 @@ async function run(inputs) {
`an invalid value for shouldDeleteReleases was provided: ${shouldDeleteReleases}`
);
validateInputField(
(repo == null ? void 0 : repo.owner) && (repo == null ? void 0 : repo.repo),
repo?.owner && repo?.repo,
"An invalid repo was provided!"
);
log("\u{1F3F7}", `given tag is "${tagName}"`);
Expand Down
52 changes: 26 additions & 26 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "delete-tag-and-release",
"version": "v0.2.1",
"version": "v1.1",
"main": "dist/index.js",
"repository": {
"type": "git",
Expand All @@ -9,7 +9,7 @@
"keywords": [],
"scripts": {
"check:types": "tsc --noEmit",
"package": "npm run check:types && esbuild main.ts --bundle --platform=node --target=node16 --outfile=dist/main.js",
"package": "npm run check:types && esbuild main.ts --bundle --platform=node --target=node20 --outfile=dist/main.js",
"test": "jest index.spec.ts",
"lint": "npm run check:types && eslint .",
"lint:fix": "eslint . --fix && npm run check:types"
Expand Down

0 comments on commit 82600fe

Please sign in to comment.