Skip to content

Commit

Permalink
Abandoning the major tags
Browse files Browse the repository at this point in the history
  • Loading branch information
dkershner6 committed Dec 23, 2023
1 parent 7479936 commit 867c21d
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 83 deletions.
1 change: 0 additions & 1 deletion .gitattributes

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

30 changes: 0 additions & 30 deletions .github/workflows/update main version tag.yml

This file was deleted.

1 change: 0 additions & 1 deletion .gitignore

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

1 change: 0 additions & 1 deletion .projen/files.json

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

50 changes: 0 additions & 50 deletions .projenrc.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { JobPermission } from "projen/lib/github/workflows-model";
import { NodePackageManager } from "projen/lib/javascript";
import {
GitHubActionTypeScriptProject,
Expand Down Expand Up @@ -56,53 +55,4 @@ const project = new GitHubActionTypeScriptProject({
},
});

const mainVersionTagWorkflow = project.github?.addWorkflow(
"Update Main Version Tag",
);
if (mainVersionTagWorkflow) {
mainVersionTagWorkflow.on({
workflowDispatch: {
inputs: {
target: {
description: "The target tag to update the main tag to",
required: true,
},
mainVersion: {
type: "choice",
description: "The main version to update",
options: ["v2"],
},
},
},
});

mainVersionTagWorkflow.addJob("tag", {
runsOn: ["ubuntu-latest"],
permissions: {
contents: JobPermission.READ,
},
steps: [
{
name: "Checkout",
uses: "actions/checkout@v2",
with: {
"fetch-depth": 0,
},
},
{
name: "Git config",
run: "git config user.name github-actions && git config user.email [email protected]",
},
{
name: "Tag New Target",
run: "git tag -f ${{ github.event.inputs.major_version }} ${{ github.event.inputs.target }}",
},
{
name: "Push Tag",
run: "git push origin ${{ github.event.inputs.major_version }} --force",
},
],
});
}

project.synth();

0 comments on commit 867c21d

Please sign in to comment.