Skip to content

Commit

Permalink
Revert: master changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ujala Singh authored and Ujala Singh committed Jan 9, 2024
1 parent e9e1248 commit 9cb93db
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/chart-release-dispatcher.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
workflows:
- "Java CI with Maven"
branches:
- main
- beta
- staging
types:
Expand Down
27 changes: 25 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ on:
- beta
- development
- master
- staging
- lineageondemand

jobs:
Expand Down Expand Up @@ -77,7 +78,7 @@ jobs:
shell: bash

- name: Get version tag
run: echo "##[set-output name=version;]$(echo `git ls-remote https://${{ secrets.my_pat }}@github.com/atlanhq/${REPOSITORY_NAME}.git ${{ steps.get_branch.outputs.branch }} | awk '{ print $1}' | cut -c1-7`)abcd"
run: echo "##[set-output name=version;]$(echo `git ls-remote https://${{ secrets.my_pat }}@github.com/atlanhq/${REPOSITORY_NAME}.git refs/heads/${{ steps.get_branch.outputs.branch }} | awk '{ print $1}' | cut -c1-7`)abcd"
id: get_version

- name: Set up Buildx
Expand All @@ -104,7 +105,6 @@ jobs:
tags: |
ghcr.io/atlanhq/${{ github.event.repository.name }}-${{ steps.get_branch.outputs.branch }}:latest
ghcr.io/atlanhq/${{ github.event.repository.name }}-${{ steps.get_branch.outputs.branch }}:${{ steps.get_version.outputs.version }}
- name: Scan Image
uses: aquasecurity/trivy-action@master
with:
Expand All @@ -117,3 +117,26 @@ jobs:
uses: github/codeql-action/[email protected]
with:
sarif_file: 'trivy-image-results.sarif'

- name: Check out into atlan repo
uses: actions/checkout@v2
with:
ref: ${{ steps.get_branch.outputs.branch }}
repository: atlanhq/atlan
token: ${{ secrets.my_pat }}

- name: Add Changelog
run: |
mkdir -p gitlog
echo "- ${{ github.event.head_commit.message }}">>gitlog/${{ github.event.repository.name }}.txt
chmod +x ./scripts/create_changelog.sh
./scripts/create_changelog.sh
- name: Commit changes
uses: EndBug/add-and-commit@v7
with:
branch: ${{ steps.get_branch.outputs.branch }}
author_name: atlan-ci
author_email: [email protected]
message: '${{ github.event.repository.name }}'
default_author: user_info
push: origin ${{ steps.get_branch.outputs.branch }}

0 comments on commit 9cb93db

Please sign in to comment.