Skip to content

Commit

Permalink
chore(workflows): update liquibase/build-logic workflows to v0.5.3
Browse files Browse the repository at this point in the history
The liquibase/build-logic workflows have been updated to version v0.5.3. This update includes the following changes:

- attach-artifact-release.yml: Updated to v0.5.3
- build-nightly.yml: Updated to v0.5.3
- codeql.yml: Updated to v0.5.3
- create-release.yml: Updated to v0.5.3
- release-published.yml: Updated to v0.5.3
- test.yml: Updated to v0.5.3

These updates are necessary to ensure that the workflows are using the latest version of the build logic and take advantage of any bug fixes or improvements that have been made.
  • Loading branch information
jandroav committed Oct 24, 2023
1 parent a3f6421 commit d22e0d7
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 48 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/attach-artifact-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ on:
jobs:

attach-artifact-to-release:
uses: liquibase/build-logic/.github/workflows/extension-attach-artifact-release.yml@v0.5.2
uses: liquibase/build-logic/.github/workflows/extension-attach-artifact-release.yml@v0.5.3
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/build-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
nightly-build:
uses: liquibase/build-logic/.github/workflows/os-extension-test.yml@v0.5.2
uses: liquibase/build-logic/.github/workflows/os-extension-test.yml@v0.5.3
with:
nightly: true
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ jobs:
uses: liquibase/build-logic/.github/workflows/codeql.yml@v0.5.3
secrets: inherit
with:
languages: '[java]'
languages: '["java"]'
2 changes: 1 addition & 1 deletion .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ on:

jobs:
create-release:
uses: liquibase/build-logic/.github/workflows/create-release.yml@v0.5.2
uses: liquibase/build-logic/.github/workflows/create-release.yml@v0.5.3
secrets: inherit
43 changes: 1 addition & 42 deletions .github/workflows/release-published.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,46 +7,5 @@ on:

jobs:
release:
uses: liquibase/build-logic/.github/workflows/extension-release-published.yml@v0.5.2
uses: liquibase/build-logic/.github/workflows/extension-release-published.yml@v0.5.3
secrets: inherit

deploy_xsd:
name: Upload xsds
runs-on: ubuntu-20.04
steps:
- name: Download liquibase mongodb xsd
uses: actions/checkout@v4
with:
# Relative path under $GITHUB_WORKSPACE to place the repository
path: liquibase-mongodb
repository: "liquibase/liquibase-mongodb"

- name: Upload to s3
env:
AWS_ACCESS_KEY_ID: ${{ secrets.LIQUIBASEORIGIN_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.LIQUIBASEORIGIN_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: us-east-1
# aws s3 sync syncs directories and S3 prefixes.
run: |
aws s3 sync liquibase-mongodb/src/main/resources/www.liquibase.org/xml/ns/mongodb/ s3://liquibaseorg-origin/xml/ns/mongodb/ --content-type application/octet-stream --only-show-errors
- name: Index.htm file upload
env:
AWS_ACCESS_KEY_ID: ${{ secrets.LIQUIBASEORIGIN_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.LIQUIBASEORIGIN_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: us-east-1
# List all xsd and htm files in repository. Copy index.htm to temporary folder
# Add links for all xsd files to index.htm file (except liquibase-mongodb-latest.xsd and index.htm)
# Sync index.htm with the s3
run: |
search_dir=liquibase-mongodb/src/main/resources/www.liquibase.org/xml/ns/mongodb
filenames=`ls -1 $search_dir`
mkdir index-file
cp $search_dir/index.htm index-file/
for entry in $filenames
do
if [[ "$entry" != "liquibase-mongodb-latest.xsd" ]] && [[ "$entry" != "index.htm" ]] ;then
sed -ie "s/<\/ul>/ <li><a href=\"\/xml\/ns\/mongodb\/${entry}\">${entry}<\/a><\/li>\n<\/ul>/" index-file/index.htm
fi
done
aws s3 sync index-file s3://liquibaseorg-origin/xml/ns/mongodb/ --only-show-errors
9 changes: 7 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@ on:

jobs:
build:
uses: liquibase/build-logic/.github/workflows/os-extension-test.yml@v0.5.2
uses: liquibase/build-logic/.github/workflows/os-extension-test.yml@v0.5.3
secrets: inherit

integration-test:
name: Integration Test
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v2

Expand All @@ -35,6 +34,12 @@ jobs:
**/target/**
~/.m2/repository/org/liquibase/
- name: Install liquibase-core 0-SNAPSHOT
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: mvn -B clean liquibase-sdk:install-snapshot -Dliquibase.sdk.branchSearch=MATCHING_BRANCHES,master

- name: Build and Package
run: mvn -B dependency:go-offline clean package -DskipTests=true

Expand Down

0 comments on commit d22e0d7

Please sign in to comment.