Skip to content

Commit

Permalink
Merge pull request #140 from bSI-InfraRoom/release/IFC4.3.0-RC4
Browse files Browse the repository at this point in the history
Release ifc4.3.0-RC4
  • Loading branch information
AlexBrad1eyCT authored Sep 28, 2021
2 parents ab34efb + 3dfeaf5 commit a04cb37
Show file tree
Hide file tree
Showing 982 changed files with 32,651 additions and 34,116 deletions.
84 changes: 84 additions & 0 deletions .github/workflows/filter-changes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# This is a basic workflow to help you get started with Actions

name: filter-changes

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ develop ]
# pull_request:
# branches: [ develop ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
filter_schema_modifications:
# The type of runner that the job will run on
runs-on: ubuntu-latest
outputs:
schema_change: ${{ steps.specification_modifications.outputs.SCHEMACHANGED }}
prop_quants_change: ${{ steps.specification_modifications.outputs.PROPSQUANTSCHANGED }}

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

# Modified files
- id: file_changes
uses: trilom/[email protected]
- name: Filter changed files
run: |
cat $HOME/files.json
echo '${{ steps.file_changes.outputs.files }}'
- name: Specification modifications
id: specification_modifications #grep -o .xml files.json | wc -w (for counting multiple instances per line)
run: |
if [[ $HOME/files.json ]] && [[ $(($(grep -o ".xml" $HOME/files.json | wc -l)-$(grep -oiE "DocProperty.xml|DocQuantity.xmlDoc|PropertySet.xml|DocQuantitySet.xml|DocTemplateDefinition.xml|DocTemplateItem.xml|DocTemplateUsage.xml|DocPropertyConstant.xml|DocPropertyEnumeration.xml" $HOME/files.json | wc -l))) -gt 0 ]]; then
echo 'Schema changed.';
echo ::set-output name=SCHEMACHANGED::true;
else
echo 'Schema did not change.';
echo ::set-output name=SCHEMACHANGED::false;
fi
if [[ $HOME/files.json ]] && [[ $(($(grep -oiE "DocProperty.xml|DocQuantity.xml|DocPropertySet.xml|DocQuantitySet.xml|DocPropertyConstant.xml|DocPropertyEnumeration.xml" $HOME/files.json | wc -l))) -gt 0 ]]; then
echo 'Properties or quantities changed';
echo ::set-output name=PROPSQUANTSCHANGED::true;
else
echo 'Properties and quantities did not change.';
echo ::set-output name=PROPSQUANTSCHANGED::false;
fi
generate-schema:
runs-on: ubuntu-latest
needs: [filter_schema_modifications]
if: ${{ needs.filter_schema_modifications.outputs.schema_change == 'true' }}
# defaults:
# run:
# shell: pwsh
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Run schema generation
env:
wtoken: ${{ secrets.WORKFLOW }}
# github-token: ${{ secrets.GITHUB_TOKEN }}
run: | # & "${{ github.workspace }}\build\IfcDocLite.exe" "${{ github.workspace }}\IFC4x3" -FE
echo $wtoken | gh auth login --with-token
gh workflow run schema-generation
generate-properties-quantities-listings:
runs-on: ubuntu-latest
needs: [filter_schema_modifications]
if: ${{ needs.filter_schema_modifications.outputs.prop_quants_change == 'true' }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Run schema generation
env:
wtoken: ${{ secrets.WORKFLOW }}
run: |
echo $wtoken | gh auth login --with-token
gh workflow run property-quantity-listings-generation
20 changes: 20 additions & 0 deletions .github/workflows/issue-management.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

name: Issue-Management

on: workflow_dispatch

jobs:
generate-kpis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ABCon-Tech/KPI-action@v1
- uses: actions/upload-artifact@v2
with:
name: summary
path: ${{ github.workspace }}/Management/Summary.md
- name: Add & Commit
uses: EndBug/[email protected]
with:
branch: management
default_author: user_info
28 changes: 28 additions & 0 deletions .github/workflows/prop-quant-listings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: property-quantity-listings-generation

# Controls when the action will run.
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
generate-properties-listings:
runs-on: windows-latest
defaults:
run:
shell: pwsh
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Run property and quantity generation
run: |
echo 'Workspace directory is ${{ github.workspace }}'
& "${{ github.workspace }}\build\IfcDocLite.exe" "${{ github.workspace }}\IFC4x3" -FP
dir properties
dir IFC4x3
- name: Upload property listings
uses: actions/upload-artifact@v2
with:
name: IFC Properties and Quantities
path: ${{ github.workspace }}\properties
29 changes: 29 additions & 0 deletions .github/workflows/schema-generation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This is a basic workflow to help you get started with Actions

name: schema-generation

# Controls when the action will run.
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
generate-schema:
runs-on: windows-latest
defaults:
run:
shell: pwsh
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Run schema generation
run: |
echo 'Workspace directory is ${{ github.workspace }}'
echo 'Home directory is $HOME'
& "${{ github.workspace }}\build\IfcDocLite.exe" "${{ github.workspace }}\IFC4x3" -FE
- name: Upload schema
uses: actions/upload-artifact@v2
with:
name: IFC Schema
path: ${{ github.workspace }}\schema
Loading

0 comments on commit a04cb37

Please sign in to comment.