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 committed Aug 29, 2023
2 parents 624aa6e + c0a5de1 commit a60ab1a
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 4 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/build-core.yml
Expand Up @@ -46,6 +46,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
5 changes: 2 additions & 3 deletions .github/workflows/docker.yml
@@ -1,11 +1,10 @@
name: app-server build

name: app-server container build

on:
workflow_dispatch:
inputs:
branch:
description: 'Please enter the branch name'
description: 'Please enter the zowe-install-packaging branch name'
required: false
default: 'v2.x/staging'
release:
Expand Down
8 changes: 7 additions & 1 deletion container/readme.md
Expand Up @@ -25,4 +25,10 @@
chmod +x *.sh
#edit start.sh parameter for zss & zosmf
./run.sh
```
```

# Using Github Actions to build image

- use the action called `app-server container build`
- Specify the branch of zowe-install-packaging, this will download the right artifacts based on manifest of the zowe-install-packaging branch
- run workflow

0 comments on commit a60ab1a

Please sign in to comment.