Skip to content

Commit

Permalink
Zowe Suite v2.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zowe-robot authored Aug 29, 2023
2 parents 13741f6 + b283383 commit 50a9361
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 13 deletions.
60 changes: 52 additions & 8 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,50 @@ jobs:
github-repo: ${{ github.repository }}
github-token: ${{ secrets.GITHUB_TOKEN }}

check_changelog:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
path: copy-repo
fetch-depth: ${{ github.event_name == 'pull_request' && 2 || 0 }}

- name: Get changed files
id: changed-files
run: |
cd copy-repo
if ${{ github.event_name == 'pull_request' }}; then
echo "changed_files=$(git diff --name-only -r HEAD^1 HEAD | xargs)" >> $GITHUB_OUTPUT
else
echo "changed_files=$(git diff --name-only ${{ github.event.before }} ${{ github.event.after }} | xargs)" >> $GITHUB_OUTPUT
fi
- name: List changed files
id: set-flag
run: |
cd copy-repo
for file in ${{ steps.changed-files.outputs.changed_files }}; do
echo "$file was changed"
if [[ $file == "CHANGELOG.md" ]]
then
echo "file-flag=true" >> $GITHUB_OUTPUT
break;
else
echo "file-flag=false" >> $GITHUB_OUTPUT
fi
done
- name: Check if CHANGELOG is Updated and Abort if not updated
if: steps.set-flag.outputs.file-flag != 'true'
run: |
echo "CHANGELOG.md not updated, please update CHANGELOG.md with the changes made in the pull request"
exit 1
- name: Remove copy-repo
if: always()
run: rm -r copy-repo

build:
runs-on: ubuntu-latest
needs: check-permission
Expand Down Expand Up @@ -85,8 +129,14 @@ jobs:

- name: '[Prep 8] Deploy '
uses: zowe-actions/zlux-builds/plugins/[email protected]/main

- name: '[Prep 9] Bump Staging Version '
if: ${{ github.event.inputs.PERFORM_RELEASE == 'true' && env.RELEASE == 'true' }}
uses: zowe-actions/zlux-builds/plugins/[email protected]/main
env:
GITHUB_TOKEN: ${{ secrets.ZOWE_ROBOT_TOKEN }}

- name: '[Prep 9] NodeJS project setup'
- name: '[Prep 10] NodeJS project setup'
if: ${{ github.event.inputs.PERFORM_RELEASE == 'true' && env.RELEASE == 'true' }}
uses: zowe-actions/zlux-builds/plugins/[email protected]/main
with:
Expand All @@ -98,13 +148,7 @@ jobs:
publish-registry-email: ${{ secrets.NPM_PRIVATE_REGISTRY_EMAIL }}
publish-registry-username: ${{ secrets.NPM_PRIVATE_REGISTRY_USERNAME }}
publish-registry-password: ${{ secrets.NPM_PRIVATE_REGISTRY_PASSWORD }}

- name: '[Prep 11] Bump Staging Version '
if: ${{ github.event.inputs.PERFORM_RELEASE == 'true' && env.RELEASE == 'true' }}
uses: zowe-actions/zlux-builds/plugins/[email protected]/main
env:
GITHUB_TOKEN: ${{ secrets.ZOWE_ROBOT_TOKEN }}

- name: '[Prep 10] Publish NPM Package '
- name: '[Prep 11] Publish NPM Package '
if: ${{ github.event.inputs.PERFORM_RELEASE == 'true' && env.RELEASE == 'true' }}
uses: zowe-actions/zlux-builds/plugins/[email protected]/main
2 changes: 1 addition & 1 deletion build/component/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-sample",
"version": "2.10.0",
"version": "2.11.0",
"description": "Sample App Showcasing Angular Adapter",
"main": "angular-sample.pax",
"homepgae": "https://zowe.org",
Expand Down
2 changes: 1 addition & 1 deletion manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: angular-sample
id: org.zowe.zlux.sample.angular
# Without the v
version: 2.10.0
version: 2.11.0
# Human readable component name
title: Angular Sample
# Human readable component description
Expand Down
2 changes: 1 addition & 1 deletion nodeServer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "org.zowe.zlux.sample.angular.nodeserver",
"version": "2.10.0",
"version": "2.11.0",
"description": "Hello World message",
"scripts": {
"build": "tsc",
Expand Down
2 changes: 1 addition & 1 deletion pluginDefinition.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"identifier": "org.zowe.zlux.sample.angular",
"apiVersion": "2.0.0",
"pluginVersion": "2.10.0",
"pluginVersion": "2.11.0",
"pluginType": "application",
"license": "EPL-2.0",
"author": "Zowe",
Expand Down
2 changes: 1 addition & 1 deletion webClient/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "org.zowe.zlux.sample.angular.webclient",
"version": "2.10.0",
"version": "2.11.0",
"scripts": {
"start": "webpack --progress --colors --watch",
"build": "webpack --progress --colors",
Expand Down

0 comments on commit 50a9361

Please sign in to comment.