-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add workflow files #97
Closed
Closed
Changes from 17 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
5d91835
add workflow files
60853c3
version update for checkout action
4f0d683
fix names
d35e3ba
fix namme convention
597a02b
change name
d757bdc
fix
72b0948
refactor to get version properly
5afb939
change variables type
37386a8
fix
5cec721
refactor var
9d64987
add output
a3a84d1
add component name
e8c015a
refactor after the conversation
f8144fd
fix typo
0184f71
add condition
97310aa
text corrections
c2d6ac8
add ability to run manually from github
4dac2d6
update to fresh action
3612644
change version of runOS
8b6fdd4
prepare to the master merge
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Dev build and publish Docker distributions to Github Container Registry ghcr.io | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- master | ||
- version-* | ||
- dependabot** | ||
paths-ignore: | ||
- README.md | ||
|
||
env: | ||
APP_NAME: ${{ github.repository }} | ||
BRANCH: ${{ github.ref }} | ||
|
||
jobs: | ||
build-job: | ||
uses: th2-net/.github/.github/workflows/compound-java-dev.yml@main | ||
with: | ||
build-target: 'Docker' | ||
docker-username: ${{ github.actor }} | ||
secrets: | ||
docker-password: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: Check licenses | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches-ignore: | ||
- master | ||
- version-* | ||
- dependabot** | ||
paths-ignore: | ||
- README.md | ||
|
||
jobs: | ||
prebuild-job: | ||
name: Prebuild Job | ||
uses: th2-net/.github/.github/workflows/compound-prebuild-java-dev-workflow.yml@main | ||
with: | ||
runsOn: 'ubuntu-20.04' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe we should use ubuntu-22.04 as it is the latest available one right now |
||
|
||
check_licenses: | ||
runs-on: 'ubuntu-20.04' | ||
needs: [prebuild-job] | ||
|
||
steps: | ||
- name: checkout actions | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install jq env | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y jq | ||
- name: Download script | ||
run: | | ||
wget -q -O check_licenses.sh https://raw.githubusercontent.com/th2-net/.github/th2-1836-json-files-update/license-compliance/check_licenses.sh | ||
chmod +x ./check_licenses.sh | ||
|
||
- name: Run check_licenses script | ||
id: run_script | ||
run: | | ||
./check_licenses.sh java | ||
line_count=$(wc -l < ./licenses_check/failed_licenses.csv) | ||
if [[ $line_count -gt 1 ]]; then | ||
echo "FAILED due to unknown/failed licenses found" | ||
exit 1 | ||
else | ||
echo "PASSED: licenses check successfull" | ||
exit 0 | ||
fi | ||
|
||
- name: Get repository name | ||
if: ${{ !cancelled() }} | ||
run: echo "REPOSITORY_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $NF}')" >> $GITHUB_OUTPUT | ||
id: meta | ||
|
||
- name: Uploading results | ||
if: ${{ !cancelled() }} | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: licenses_check-${{ steps.meta.outputs.REPOSITORY_NAME }}-${{ needs.prebuild-job.outputs.version }} | ||
path: ./licenses_check/ | ||
|
||
# - name: Set workflow status | ||
# run: echo "::set-output name=status::Failure" | ||
# if: steps.set_status.outputs.result == 'FAILED due to unknown licenses found' | ||
# continue-on-error: false | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Probably, this should be removed |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just for your information: this won't work until this workflow is merged into the default branch. The workflow can be triggered manually only if it is in the default branch