Skip to content

Commit 845d186

Browse files
OGlanzmannarebergJorgenErlandssonPeterLBorresenRikardLarsson-BEAst
authored
Release 1.2
* Created new profile for Transport notification * TSR + TS * LLC-23 * LLC-23 * LLC-23 * LLC-23 * LLC-23 * LLC-23 * LLC-23 * LLC-23 * LLC-23 * New version of BIS * LLC-23 * LLC-23 * Added example files for profile 74 * Updated of the BIS * Added release notes * Added release notes * LLC-23 * LLC-23 * Create 74.adoc * LLC-23 * Changes to chapter 7 * Updates to chapter 7 * LLC-23 * Updated 74.adoc * LLC-23 * Added example-file * LLC-23 * LLC-23 * Updated chapter 6: Description * Bugfix commited files * Generated by github actions * Bugfix commit * LLC-23 * Generated by github actions * LLC-23 * Generated by github actions * LLC-23 * Generated by github actions * LLC-23 * Generated by github actions * LLC-23 * Generated by github actions * LLC-23 * Generated by github actions * LLC-23 * Generated by github actions * LLC-23 * Generated by github actions * Changed Example files * Updated Example files Profile 74 * Updates to example file Profile 74 * Updated example files Profile 74 * LLC-23 * Bugfix rule R002 * Generated by github actions * Bugfix R002 * Generated by github actions * Yet another bugfix * Generated by github actions * Declation error fix * Generated by github actions * Changes after review period * Generated by github actions * Changes after review period * Generated by github actions * Changes after review period * Generated by github actions * Changes after review period * Generated by github actions * Changes to example files * Changes to example files * Changes to example files * Changes to example files after review * Regression test * Regression test * Changes to example files after review * Changes in example files after review * Changes to example files after review * Regressionn test * Regression test * Regression test * Regression test * Bugfix * Generated by github actions * Regression test * Regression test * Regression test * Regression test * Regression test * Regression test * Update transaction names * Update transaction names * Generated by github actions * Fix issue 218 - Remove root element prefix in example files * LLC-22 + LLC-26 * Fix issue 218 - Remove root element prefix in example files * LLC-26 continued * Release notes update * Update common rules * Generated by github actions * Update common rules * Generated by github actions * Update common rules * Update common rules * Generated by github actions * Update common rules * Generated by github actions * Change validation to phelger * Change validation to phelger * Change back validation from phelger * Correct danish ERSTORG in Example files * Correct danish ERSTORG in Example files * Generated by github actions * Added checkSEOrgnr validation * Generated by github actions * Enabled sync from POACC * Added run permissions * Generated by github actions * Removed common rule 40 test * Danish ERSTORG identities fix in all places * Generated by github actions * Danish ERSTORG identities fix in all places * Danish ERSTORG identities fix in all places * Release notes * Generated by github actions * Test process * Release date change * Revise release date and add mandatory usage date Updated release date information and added mandatory usage date. * Generated by github actions * Update release date format in v1.2 notes * Update of examples * Comments after review period * update build script * Update v1.2.adoc --------- Co-authored-by: Are Berg <abe@edisys.no> Co-authored-by: JorgenErlandsson <jorgen.erlandsson@tyringe.com> Co-authored-by: Peter Borresen <plb@ebConnect.dk> Co-authored-by: RikardLarsson-BEAst <rikard@beast.se> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: RikardLarsson-BEAst <84912629+RikardLarsson-BEAst@users.noreply.github.com> Co-authored-by: Jerry Dimitriou <jerouris@users.noreply.github.com>
1 parent 8c7b80e commit 845d186

File tree

267 files changed

+50300
-22191
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

267 files changed

+50300
-22191
lines changed

.github/workflows/build-and-deploy-branch.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
name: Build and deploy non-main branch to non production sites
1+
name: Build and deploy non-main branch to non-production sites
2+
23
on:
34
push:
45
branches-ignore:
@@ -8,23 +9,34 @@ jobs:
89
build:
910
runs-on: ubuntu-latest
1011
steps:
12+
# Step 1: Checkout source code (to access sync_sch.sh script)
1113
- name: Checkout source code
12-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
15+
16+
# Step 2: Run the Sync Script
17+
- name: Sync from Peppol repos
18+
run: ./sync_repos.sh
1319

20+
# Step 3: Build Spec
1421
- name: Build Spec
1522
run: bash ./build.sh
1623

24+
# Step 4: Commit generated files
1725
- name: Commit the generated files
18-
uses: iarekylew00t/verified-bot-commit@v1
26+
uses: EndBug/add-and-commit@v9
1927
with:
28+
default_author: github_actions
2029
message: 'Generated by github actions'
21-
files: |
22-
*.xml
23-
*.sch
30+
# add: '["**/*.xml", "**/*.sch", "**/*.adoc"]'
31+
add: '["**/*.xml", "**/*.sch"]'
32+
push: true
33+
2434

35+
# Step 5: Branch name for deployment
2536
- name: Branch name
2637
run: echo Deploying on ${{ secrets.AWS_S3_PATH }}/${GITHUB_REF#refs/heads/}
2738

39+
# Step 6: Deploy on S3
2840
- name: Deploy on S3
2941
env:
3042
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}

.github/workflows/build-and-deploy-main.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,39 @@ on:
44
branches:
55
- main
66

7+
78
jobs:
89
build:
910
runs-on: ubuntu-latest
1011
steps:
12+
# Step 1: Checkout source code (to access sync_sch.sh script)
1113
- name: Checkout source code
12-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
15+
16+
# Step 2: Run the Sync Script
17+
- name: Sync from Peppol repos
18+
run: ./sync_repos.sh
1319

20+
# Step 3: Build Spec
1421
- name: Build Spec
1522
run: bash ./build.sh
1623

24+
# Step 4: Commit generated files
1725
- name: Commit the generated files
18-
uses: iarekylew00t/verified-bot-commit@v1
26+
uses: EndBug/add-and-commit@v9
1927
with:
28+
default_author: github_actions
2029
message: 'Generated by github actions'
21-
files: |
22-
*.xml
23-
*.sch
30+
# add: '["**/*.xml", "**/*.sch", "**/*.adoc"]'
31+
add: '["**/*.xml", "**/*.sch"]'
32+
push: true
33+
2434

35+
# Step 5: Branch name for deployment
2536
- name: Branch name
26-
run: echo Deploying ${GITHUB_REF#refs/heads/}
37+
run: echo Deploying on ${{ secrets.AWS_S3_PATH }}
2738

39+
# Step 6: Deploy on S3
2840
- name: Deploy on S3
2941
env:
3042
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}

build.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ echo "Generating documentation: Transportation Status"
2424
docker run --rm -i -v $PROJECT:/src -v $PROJECT/target/generated:/target --entrypoint java klakegg/saxon:9.8.0-7 -cp /saxon.jar net.sf.saxon.Transform -s:/src/structure/source/ubl-transportation-status.xml -xsl:/src/tools/UBLInstance-To-StructureXML.xsl -o:/src/structure/syntax/ubl-transportation-status.xml UblBaseUrl=https://raw.githubusercontent.com/OpenPEPPOL/poacc-upgrade-3/master/structure/syntax/ UblDocBaseUrl=https://docs.peppol.eu/poacc/upgrade-3/syntax/DespatchAdvice/ UblXmlReferenceFile=ubl-despatch-advice.xml -ext:on --allow-external-functions:on
2525
echo "Generating documentation: Receipt Advice"
2626
docker run --rm -i -v $PROJECT:/src -v $PROJECT/target/generated:/target --entrypoint java klakegg/saxon:9.8.0-7 -cp /saxon.jar net.sf.saxon.Transform -s:/src/structure/source/ubl-receipt-advice.xml -xsl:/src/tools/UBLInstance-To-StructureXML.xsl -o:/src/structure/syntax/ubl-receipt-advice.xml UblBaseUrl=https://raw.githubusercontent.com/OpenPEPPOL/poacc-upgrade-3/master/structure/syntax/ UblDocBaseUrl=https://docs.peppol.eu/poacc/upgrade-3/syntax/DespatchAdvice/ UblXmlReferenceFile=ubl-despatch-advice.xml -ext:on --allow-external-functions:on
27+
echo "Generating documentation: Application Response"
28+
docker run --rm -i -v $PROJECT:/src -v $PROJECT/target/generated:/target --entrypoint java klakegg/saxon:9.8.0-7 -cp /saxon.jar net.sf.saxon.Transform -s:/src/structure/source/ubl-application-response.xml -xsl:/src/tools/UBLInstance-To-StructureXML.xsl -o:/src/structure/syntax/ubl-application-response.xml UblBaseUrl=https://raw.githubusercontent.com/OpenPEPPOL/poacc-upgrade-3/master/structure/syntax/ UblDocBaseUrl=https://docs.peppol.eu/poacc/upgrade-3/syntax/DespatchAdvice/ UblXmlReferenceFile=ubl-despatch-advice.xml -ext:on --allow-external-functions:on
2729

2830
# Generate maping documents.
2931
echo "Generating mapping documents: Advanced Despatch advice"
@@ -42,6 +44,8 @@ echo "Generating mapping documents: Transportation Status"
4244
docker run --rm -i -v $PROJECT:/src -v $PROJECT/target/generated:/target --entrypoint java klakegg/saxon:9.8.0-7 -cp /saxon.jar net.sf.saxon.Transform -s:/src/structure/syntax/ubl-transportation-status.xml -xsl:/src/tools/create-mapping-document.xsl -o:/src/rules/mapping/TransportationStatus.xml -ext:on --allow-external-functions:on
4345
echo "Generating mapping documents: Receipt Advice"
4446
docker run --rm -i -v $PROJECT:/src -v $PROJECT/target/generated:/target --entrypoint java klakegg/saxon:9.8.0-7 -cp /saxon.jar net.sf.saxon.Transform -s:/src/structure/syntax/ubl-receipt-advice.xml -xsl:/src/tools/create-mapping-document.xsl -o:/src/rules/mapping/ReceiptAdvice.xml -ext:on --allow-external-functions:on
47+
echo "Generating mapping documents: Application Response"
48+
docker run --rm -i -v $PROJECT:/src -v $PROJECT/target/generated:/target --entrypoint java klakegg/saxon:9.8.0-7 -cp /saxon.jar net.sf.saxon.Transform -s:/src/structure/syntax/ubl-application-response.xml -xsl:/src/tools/create-mapping-document.xsl -o:/src/rules/mapping/ApplicationResponse.xml -ext:on --allow-external-functions:on
4549

4650
# Create examples based on documentation.
4751
echo "Generating example: Advanced Despatch Advice"
@@ -60,15 +64,18 @@ echo "Generating example: Transportation Status"
6064
docker run --rm -i -v $PROJECT:/src -v $PROJECT/target/generated:/target --entrypoint java klakegg/saxon:9.8.0-7 -cp /saxon.jar net.sf.saxon.Transform -s:/src/structure/source/ubl-transportation-status.xml -xsl:/src/tools/remove-pi.xsl -o:/src/rules/examples/TransportationStatus_Example_Full.xml -ext:on --allow-external-functions:on
6165
echo "Generating example: Receipt Advice"
6266
docker run --rm -i -v $PROJECT:/src -v $PROJECT/target/generated:/target --entrypoint java klakegg/saxon:9.8.0-7 -cp /saxon.jar net.sf.saxon.Transform -s:/src/structure/source/ubl-receipt-advice.xml -xsl:/src/tools/remove-pi.xsl -o:/src/rules/examples/ReceiptAdvice_Example_Full.xml -ext:on --allow-external-functions:on
67+
echo "Generating example: ApplicationResponse"
68+
docker run --rm -i -v $PROJECT:/src -v $PROJECT/target/generated:/target --entrypoint java klakegg/saxon:9.8.0-7 -cp /saxon.jar net.sf.saxon.Transform -s:/src/structure/source/ubl-application-response.xml -xsl:/src/tools/remove-pi.xsl -o:/src/rules/examples/ApplicationResponse_Example_Full.xml -ext:on --allow-external-functions:on
6369

6470
# Structure
6571
docker run --rm -i \
6672
-v $PROJECT:/src \
6773
-v $PROJECT/target:/target \
6874
difi/vefa-structure:0.6.1
6975

70-
# Testing validation rules
71-
docker run --rm -i -v $PROJECT:/src anskaffelser/validator:2.1.0 build -x -t -n eu.peppol.poacc.upgrade.v3 -a rules -target target/validator-test /src
76+
# Testing validation rules
77+
#docker run --rm -i -v $PROJECT:/src anskaffelser/validator:2.1.0 build -x -t -n eu.peppol.poacc.upgrade.v3 -a rules -target target/validator-test /src
78+
docker run --rm -i -v $PROJECT:/src phelger/vefa-validator:2.3.1 build -x -t -n eu.peppol.poacc.upgrade.v3 -a rules -target target/validator-test /src
7279

7380
# Schematron
7481
for sch in $PROJECT/rules/sch/*.sch; do

0 commit comments

Comments
 (0)