Skip to content

Commit

Permalink
Merge pull request #148 from bcgov/yj
Browse files Browse the repository at this point in the history
chore: remove commented code
  • Loading branch information
ychung-mot authored Apr 16, 2024
2 parents aa234ff + 8163f7b commit 7955414
Showing 1 changed file with 0 additions and 73 deletions.
73 changes: 0 additions & 73 deletions .github/workflows/create-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,76 +42,3 @@ jobs:
git config commit.gpgsign false
git tag v${{ steps.input.outputs.tag }} -m "Release v${{ steps.input.outputs.tag }}"
git push --tags origin
# - name: Setup Tools
# uses: ./.github/actions/setup-tools

# - name: Setup NPM Packages
# uses: ./.github/actions/setup-npm

# - name: Create a tag and update changelog
# run: |
# git config user.name "$GITHUB_ACTOR"
# git config user.email "[email protected]"
# git config commit.gpgsign false

# branch=changelog/${{ steps.input.outputs.tag }}
# git checkout -b "$branch"
# git push --set-upstream origin "$branch"

# echo "git status - 0"
# git status
# echo "git status - 1"
# git reset --hard
# ./node_modules/.bin/release-it ${{ steps.input.outputs.tag }} --only-version

# - name: Set output variables
# id: vars
# run: |
# pr_title="chore: release candidate v${{ steps.input.outputs.tag }}"
# pr_body=$(git tag -l --format='%(contents)' v${{ steps.input.outputs.tag }})
# echo "pr_title=$pr_title" >> $GITHUB_OUTPUT
# echo "base=$GITHUB_REF_NAME" >> $GITHUB_OUTPUT

# # See https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#multiline-strings
# EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
# echo "pr_body<<$EOF" >> "$GITHUB_OUTPUT"
# echo "$pr_body" >> $GITHUB_OUTPUT
# echo "$EOF" >> "$GITHUB_OUTPUT"

# - name: Create Pull Request
# uses: actions/github-script@6f00a0b667f9463337970371ccda9072ee86fb27
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# script: |
# const { repo, owner } = context.repo;
# const result = await github.rest.pulls.create({
# owner,
# repo,
# head: 'changelog/${{ steps.input.outputs.tag }}',
# base: '${{ steps.vars.outputs.base }}',
# title: '${{ steps.vars.outputs.pr_title }}',
# body: `### Commits
# ${{ steps.vars.outputs.pr_body }}
# ### GitHub Action
# - [Build and deploy Apps in Test Environment](https://github.com/strdss/actions/workflows/deploy-test.yml)
# `,
# });

# github.rest.issues.addLabels({
# owner,
# repo,
# issue_number: result.data.number,
# labels: ['changelog', 'v${{ steps.input.outputs.tag }}']
# });

# # github.rest.pulls.merge({
# # owner,
# # repo,
# # pull_number: result.data.number,
# # merge_method: 'merge'
# # });

# - name: Delete Changelog Branch
# run: |
# git push origin -d changelog/${{ steps.input.outputs.tag }}

0 comments on commit 7955414

Please sign in to comment.