Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/pip/publish_scripts/requests-2.…
Browse files Browse the repository at this point in the history
…32.0
  • Loading branch information
Nuvindu authored Sep 6, 2024
2 parents 3d2a49f + 529ea6a commit bd4a16d
Show file tree
Hide file tree
Showing 13 changed files with 709 additions and 369 deletions.
505 changes: 505 additions & 0 deletions .github/workflows/daily-full-build-2201.10.x.yml

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions .github/workflows/daily-full-build-2201.7.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,14 @@ jobs:
with:
distribution: 'temurin'
java-version: '11'
- name: Setup GraalVM
uses: graalvm/setup-graalvm@v1
with:
java-version: '11'
distribution: 'graalvm'
components: 'native-image'
github-token: ${{ secrets.GITHUB_TOKEN }}
set-java-home: 'false'
- name: Download Ballerina Lang Artifacts
uses: actions/download-artifact@v2
with:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/daily-full-build-2201.8.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ jobs:
with:
distribution: 'temurin'
java-version: '17.0.7'
- name: Setup GraalVM
uses: graalvm/setup-graalvm@v1
with:
java-version: '17.0.7'
distribution: 'graalvm'
components: 'native-image'
github-token: ${{ secrets.GITHUB_TOKEN }}
set-java-home: 'false'
- name: Build ballerina-lang
run: python -u dependabot/full_build_pipeline.py ./ --lang-branch $PATCH_LEVEL --build-level 0
env:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/daily-full-build-2201.9.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ jobs:
with:
distribution: 'temurin'
java-version: '17.0.7'
- name: Setup GraalVM
uses: graalvm/setup-graalvm@v1
with:
java-version: '17.0.7'
distribution: 'graalvm'
components: 'native-image'
github-token: ${{ secrets.GITHUB_TOKEN }}
set-java-home: 'false'
- name: Build ballerina-lang
run: python -u dependabot/full_build_pipeline.py ./ --lang-branch $PATCH_LEVEL --build-level 0
env:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/daily-full-build-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ jobs:
with:
distribution: 'temurin'
java-version: '17.0.7'
- name: Setup GraalVM
uses: graalvm/setup-graalvm@v1
with:
java-version: '17.0.7'
distribution: 'graalvm'
components: 'native-image'
github-token: ${{ secrets.GITHUB_TOKEN }}
set-java-home: 'false'
- name: Build ballerina-lang
run: python -u dependabot/full_build_pipeline.py ./ --lang-branch $PATCH_LEVEL --build-level 0
env:
Expand Down
26 changes: 14 additions & 12 deletions .github/workflows/delete-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ on:
description: 'Repository'
required: true
default: 'ballerina-lang'
package:
description: 'Specific package(groupId.artifactId)'
packages:
description: 'Comma separated list of packages (groupId.artifactId)'
required: true
version:
description: 'Package version'
Expand All @@ -30,15 +30,17 @@ jobs:
- name: Set authorized username
id: setUname
run: printf "::set-output name=foundUname::%s" $(cat /tmp/auth-user.json)
- name: Get package version ids
- name: Read and delete packages
if: steps.setUname.outputs.foundUname != ''
run: |
curl -H "Authorization: bearer ${{ secrets.GITHUB_TOKEN }}" -H "Accept: application/vnd.github.v3+json" https://api.github.com/orgs/${{ github.event.inputs.owner }}/packages/maven/${{ github.event.inputs.package }}/versions -o /tmp/version-ids.json
- name: Filter packages and set version ID
id: setid
if: steps.setUname.outputs.foundUname != ''
run: printf "::set-output name=versionId::%s" $(cat /tmp/version-ids.json | jq -r '.[] | select(.name=="${{ github.event.inputs.version }}")|.id')
- name: Delete selected package
if: steps.setUname.outputs.foundUname != '' && steps.setid.outputs.versionId != ''
run: |
curl -X DELETE -H "Authorization: bearer ${{ secrets.DELETE_PACKAGE_PAT }}" -H "Accept: application/vnd.github.v3+json" https://api.github.com/orgs/${{ github.event.inputs.owner }}/packages/maven/${{ github.event.inputs.package }}/versions/${{ steps.setid.outputs.versionId }}
IFS=',' read -r -a package_array <<< "${{ github.event.inputs.packages }}"
for package in "${package_array[@]}"; do
package=$(echo $package | xargs)
echo "Fetching versions of package: $package"
version_ids=$(curl -H "Authorization: bearer ${{ secrets.GITHUB_TOKEN }}" -H "Accept: application/vnd.github.v3+json" https://api.github.com/orgs/${{ github.event.inputs.owner }}/packages/maven/$package/versions)
version_id=$(echo $version_ids | jq -r '.[] | select(.name=="${{ github.event.inputs.version }}")|.id')
if [[ -n $version_id ]]; then
curl -X DELETE -H "Authorization: bearer ${{ secrets.DELETE_PACKAGE_PAT }}" -H "Accept: application/vnd.github.v3+json" https://api.github.com/orgs/${{ github.event.inputs.owner }}/packages/maven/$package/versions/$version_id
echo "Deleted package version: $version_id"
fi
done
9 changes: 9 additions & 0 deletions .github/workflows/full_build_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ on:
required: true
options:
- 'master'
- '2201.10.x'
- '2201.9.x'
- '2201.8.x'
- '2201.7.x'
Expand Down Expand Up @@ -90,6 +91,14 @@ jobs:
with:
distribution: 'temurin'
java-version: '11'
- name: Setup GraalVM
uses: graalvm/setup-graalvm@v1
with:
java-version: '17.0.7'
distribution: 'graalvm'
components: 'native-image'
github-token: ${{ secrets.GITHUB_TOKEN }}
set-java-home: 'false'
- name: Set command
id: set-command
shell: bash
Expand Down
Loading

0 comments on commit bd4a16d

Please sign in to comment.