From 867c21d2f5238b9c04c594611ba142f283706502 Mon Sep 17 00:00:00 2001 From: Derek Kershner Date: Fri, 22 Dec 2023 19:25:36 -0800 Subject: [PATCH] Abandoning the major tags --- .gitattributes | 1 - .github/workflows/update main version tag.yml | 30 ----------- .gitignore | 1 - .projen/files.json | 1 - .projenrc.ts | 50 ------------------- 5 files changed, 83 deletions(-) delete mode 100644 .github/workflows/update main version tag.yml diff --git a/.gitattributes b/.gitattributes index 65193f0..0b839a6 100644 --- a/.gitattributes +++ b/.gitattributes @@ -8,7 +8,6 @@ /.github/workflows/build.yml linguist-generated /.github/workflows/pull-request-lint.yml linguist-generated /.github/workflows/release.yml linguist-generated -/.github/workflows/update main version tag.yml linguist-generated /.github/workflows/upgrade-main.yml linguist-generated /.gitignore linguist-generated /.mergify.yml linguist-generated diff --git a/.github/workflows/update main version tag.yml b/.github/workflows/update main version tag.yml deleted file mode 100644 index 8d6f4e2..0000000 --- a/.github/workflows/update main version tag.yml +++ /dev/null @@ -1,30 +0,0 @@ -# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen". - -name: Update Main Version Tag -on: - workflow_dispatch: - inputs: - target: - description: The target tag to update the main tag to - required: true - main_version: - type: choice - description: The main version to update - options: - - v2 -jobs: - tag: - runs-on: ubuntu-latest - permissions: - contents: 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 github-actions@github.com - - 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 diff --git a/.gitignore b/.gitignore index 652616c..5c7d61d 100644 --- a/.gitignore +++ b/.gitignore @@ -51,4 +51,3 @@ junit.xml !/.eslintrc.json !/dist/ !/action.yml -!/.github/workflows/update main version tag.yml diff --git a/.projen/files.json b/.projen/files.json index 878a86b..e9eacdd 100644 --- a/.projen/files.json +++ b/.projen/files.json @@ -7,7 +7,6 @@ ".github/workflows/build.yml", ".github/workflows/pull-request-lint.yml", ".github/workflows/release.yml", - ".github/workflows/update main version tag.yml", ".github/workflows/upgrade-main.yml", ".gitignore", ".mergify.yml", diff --git a/.projenrc.ts b/.projenrc.ts index e22858b..e4077e9 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -1,4 +1,3 @@ -import { JobPermission } from "projen/lib/github/workflows-model"; import { NodePackageManager } from "projen/lib/javascript"; import { GitHubActionTypeScriptProject, @@ -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 github-actions@github.com", - }, - { - 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();