Skip to content

Commit

Permalink
extension version-upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
siyaramblackduck committed Sep 20, 2024
1 parent 6449ee3 commit e2f0b68
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 2 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/create-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: create-tag

on:
workflow_dispatch:

jobs:
create-tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x

- name: Install dependencies
run: cd synopsys-task && npm ci

- name: Rebuild the dist/ directory
run: cd synopsys-task && npm run build && npm run package

- name: Compare the expected and actual dist/ directories
run: |
cd synopsys-task
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
echo "Detected uncommitted changes after build. See status below:"
git diff
exit 1
fi
id: diff

- name: Create Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
Changes in this Release
- First Change
- Second Change
draft: false
prerelease: true
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: upgrade-synopsys-extension-version
name: upgrade-extension-version

on:
workflow_dispatch:
Expand All @@ -10,7 +10,7 @@ on:
type: boolean

jobs:
upgrade-synopsys-extension-version:
upgrade-extension-version:
if: ${{ github.event.inputs.isUpgrade == 'true' }}
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit e2f0b68

Please sign in to comment.