forked from apache/atlas
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ujala Singh
authored and
Ujala Singh
committed
Jan 9, 2024
1 parent
9cb93db
commit 5c3196b
Showing
1 changed file
with
6 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,6 @@ on: | |
- beta | ||
- development | ||
- master | ||
- staging | ||
- lineageondemand | ||
|
||
jobs: | ||
|
@@ -78,7 +77,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 refs/heads/${{ 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 ${{ steps.get_branch.outputs.branch }} | awk '{ print $1}' | cut -c1-7`)abcd" | ||
id: get_version | ||
|
||
- name: Set up Buildx | ||
|
@@ -105,6 +104,7 @@ 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: | ||
|
@@ -121,7 +121,7 @@ jobs: | |
- name: Check out into atlan repo | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ steps.get_branch.outputs.branch }} | ||
ref: main | ||
repository: atlanhq/atlan | ||
token: ${{ secrets.my_pat }} | ||
|
||
|
@@ -131,12 +131,13 @@ jobs: | |
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 }} | ||
branch: main | ||
author_name: atlan-ci | ||
author_email: [email protected] | ||
message: '${{ github.event.repository.name }}' | ||
default_author: user_info | ||
push: origin ${{ steps.get_branch.outputs.branch }} | ||
push: origin main |