-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into cwa/close-153-semantic-mapping-to-cif-ontology
- Loading branch information
Showing
40 changed files
with
1,375 additions
and
652 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
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
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 @@ | ||
entities-service[cli] @ git+https://github.com/SINTEF/[email protected] |
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
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: CD - Upload Entities | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
|
||
jobs: | ||
update-public-entities: | ||
name: Update public entities | ||
runs-on: ubuntu-latest | ||
if: github.repository_owner == 'SINTEF' | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Python 3.10 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -U setuptools wheel | ||
pip install -r .github/utils/requirements_upload.txt | ||
- name: Check 'entities-service' CLI version | ||
run: entities-service --version | ||
|
||
- name: Gather Entities | ||
id: gather_entities | ||
run: | | ||
if [ "${{ github.event_name }}" == "push" ]; then | ||
SHA_BEFORE="${{ github.event.before }}" | ||
else | ||
SHA_BEFORE="${{ github.event.pull_request.base.sha }}" | ||
fi | ||
git diff --name-only ${SHA_BEFORE} | grep -E '^entities/.*\.ya?ml$' > entities.txt ||: | ||
if [ -s entities.txt ]; then | ||
echo "relevant_entities=true" >> $GITHUB_OUTPUT | ||
echo "Relevant Entities:" | ||
cat entities.txt | ||
else | ||
echo "relevant_entities=false" >> $GITHUB_OUTPUT | ||
echo "No entities to validate (and upload)." | ||
exit 0 | ||
fi | ||
- name: Validate Entities | ||
if: steps.gather_entities.outputs.relevant_entities == 'true' | ||
run: cat entities.txt | entities-service validate --strict --format=yaml - | ||
|
||
- name: Upload Entities | ||
if: steps.gather_entities.outputs.relevant_entities == 'true' && github.event_name == 'push' && github.ref_name == 'main' | ||
run: cat entities.txt | entities-service upload --auto-confirm --strict --format=yaml - | ||
env: | ||
ENTITIES_SERVICE_ACCESS_TOKEN: ${{ secrets.ENTITIES_SERVICE_ACCESS_TOKEN }} |
8 changes: 4 additions & 4 deletions
8
...workflows/ci_automerge_dependency_prs.yml → .../workflows/ci_automerge_automated_prs.yml
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
name: CI - Activate auto-merging for dependencies PRs | ||
name: CI - Activate auto-merging for automated PRs | ||
|
||
on: | ||
pull_request_target: | ||
branches: [ci/dependency-updates] | ||
branches: [main] | ||
|
||
jobs: | ||
update-dependencies-branch: | ||
name: External | ||
uses: SINTEF/ci-cd/.github/workflows/ci_automerge_prs.yml@v2.7.4 | ||
if: github.repository_owner == 'SINTEF' && ( ( startsWith(github.event.pull_request.head.ref, 'dependabot/') && github.actor == 'dependabot[bot]' ) || ( github.event.pull_request.head.ref == 'ci/update-pyproject' && github.actor == 'TEAM4-0' ) ) | ||
uses: SINTEF/ci-cd/.github/workflows/ci_automerge_prs.yml@v2.8.2 | ||
if: github.repository_owner == 'SINTEF' && ( ( startsWith(github.event.pull_request.head.ref, 'dependabot/') && github.actor == 'dependabot[bot]' ) || ( github.event.pull_request.head.ref == 'pre-commit-ci-update-config' && github.actor == 'pre-commit-ci[bot]' ) ) | ||
secrets: | ||
PAT: ${{ secrets.RELEASE_PAT }} |
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 |
---|---|---|
|
@@ -7,16 +7,15 @@ on: | |
jobs: | ||
update-deps-branch-and-docs: | ||
name: External | ||
uses: SINTEF/ci-cd/.github/workflows/ci_cd_updated_default_branch.yml@v2.7.4 | ||
uses: SINTEF/ci-cd/.github/workflows/ci_cd_updated_default_branch.yml@v2.8.2 | ||
if: github.repository_owner == 'SINTEF' | ||
with: | ||
# General | ||
git_username: "TEAM 4.0[bot]" | ||
git_email: "[email protected]" | ||
|
||
# Update dependency branch | ||
permanent_dependencies_branch: "ci/dependency-updates" | ||
default_repo_branch: main | ||
update_dependencies_branch: false | ||
|
||
# Update documentation | ||
update_docs: true | ||
|
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.