Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support M1 build workflow in release pipeline #2765

Merged
merged 110 commits into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from 103 commits
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
2638db4
Release pipeline for linux, mariner, mac and windows
dphulkar-msft Jun 20, 2024
5c9f872
Release pipeline for linux, mariner, mac and windows
dphulkar-msft Jun 20, 2024
4019d86
Merge branch 'az-releasePipeline' of https://github.com/Azure/azure-s…
dphulkar-msft Jun 20, 2024
5640109
Merge branch 'az-releasePipeline' of https://github.com/Azure/azure-s…
dphulkar-msft Jun 20, 2024
56f6943
Merge branch 'az-releasePipeline' of https://github.com/Azure/azure-s…
dphulkar-msft Jun 20, 2024
53164a1
Merge branch 'az-releasePipeline' of https://github.com/Azure/azure-s…
dphulkar-msft Jun 20, 2024
46349ab
Merge branch 'az-releasePipeline' of https://github.com/Azure/azure-s…
dphulkar-msft Jun 20, 2024
dbb6033
Merge branch 'az-releasePipeline' of https://github.com/Azure/azure-s…
dphulkar-msft Jun 20, 2024
66a8625
Merge branch 'az-releasePipeline' of https://github.com/Azure/azure-s…
dphulkar-msft Jun 20, 2024
9bb26c7
Merge branch 'az-releasePipeline' of https://github.com/Azure/azure-s…
dphulkar-msft Jun 20, 2024
c495b58
Merge branch 'main' of https://github.com/Azure/azure-storage-azcopy …
dphulkar-msft Jun 25, 2024
a8dab8a
Merge branch 'az-releasePipeline' of https://github.com/Azure/azure-s…
dphulkar-msft Jun 25, 2024
5389790
Merge branch 'az-releasePipeline' of https://github.com/Azure/azure-s…
dphulkar-msft Jun 25, 2024
a3487cd
Merge branch 'az-releasePipeline' of https://github.com/Azure/azure-s…
dphulkar-msft Jun 25, 2024
7dbfe1e
incorporated review comments
dphulkar-msft Jul 3, 2024
5e13b19
incorporated review comments
dphulkar-msft Jul 3, 2024
e4ba9bb
incorporated review comments
dphulkar-msft Jul 3, 2024
3eae591
incorporated review comments
dphulkar-msft Jul 3, 2024
8a8ed94
Merge branch 'az-releasePipeline' of https://github.com/Azure/azure-s…
dphulkar-msft Jul 5, 2024
e95e43d
resolved conflicts
dphulkar-msft Jul 5, 2024
5ef790b
testes
dphulkar-msft Jul 8, 2024
754361f
tested
dphulkar-msft Jul 8, 2024
b5f191c
incorporated review comments
dphulkar-msft Jul 9, 2024
cc33038
incorporated review comments
dphulkar-msft Jul 10, 2024
27adcaf
incorporated review comments
dphulkar-msft Jul 10, 2024
c13755b
Merge branch 'az-releasePipeline' of https://github.com/Azure/azure-s…
dphulkar-msft Jul 10, 2024
aa5f69b
Merge branch 'az-releasePipeline' of https://github.com/Azure/azure-s…
dphulkar-msft Jul 10, 2024
8c776a1
Merge branch 'az-releasePipeline' of https://github.com/Azure/azure-s…
dphulkar-msft Jul 10, 2024
4942ec8
Merge branch 'main' of https://github.com/Azure/azure-storage-azcopy …
dphulkar-msft Jul 11, 2024
977cce5
Merge branch 'main' of https://github.com/Azure/azure-storage-azcopy …
dphulkar-msft Jul 12, 2024
86b4c3a
Added flag for releasing to public container
dphulkar-msft Jul 12, 2024
09f6acc
Merge branch 'main' of https://github.com/Azure/azure-storage-azcopy …
dphulkar-msft Jul 17, 2024
e4fd635
Merge branch 'main' of https://github.com/Azure/azure-storage-azcopy …
dphulkar-msft Jul 18, 2024
62581f3
changes test name
dphulkar-msft Jul 19, 2024
3b0c755
changes test name
dphulkar-msft Jul 19, 2024
3697e4b
Merge branch 'main' of https://github.com/Azure/azure-storage-azcopy …
dphulkar-msft Jul 19, 2024
345db35
changes test name
dphulkar-msft Jul 19, 2024
d41c7eb
changes test name
dphulkar-msft Jul 19, 2024
fc2b59b
remove code signature file as it is not required
dphulkar-msft Jul 19, 2024
44c3244
rolled back test name
dphulkar-msft Jul 22, 2024
f598685
rolled back test name
dphulkar-msft Jul 22, 2024
cd07e55
Merge branch 'az-releasePipeline' of https://github.com/Azure/azure-s…
dphulkar-msft Jul 22, 2024
2c46717
Update zt_amanaged_disks_test.go
dphulkar-msft Jul 23, 2024
a896885
Merge branch 'main' into az-releasePipeline
vibhansa-msft Jul 24, 2024
bc7c8ef
updated dependencies
dphulkar-msft Jul 24, 2024
5705c88
Merge branch 'az-releasePipeline' of https://github.com/Azure/azure-s…
dphulkar-msft Jul 24, 2024
7c6ea26
Version update
dphulkar-msft Jul 24, 2024
fde25da
Merge branch 'main' of https://github.com/Azure/azure-storage-azcopy …
dphulkar-msft Jul 24, 2024
7c14cc2
test linux version
dphulkar-msft Jul 24, 2024
e2dbf6d
test linux version
dphulkar-msft Jul 24, 2024
b98b71c
test linux version
dphulkar-msft Jul 24, 2024
84c8975
test linux version
dphulkar-msft Jul 24, 2024
5d5348c
test linux version 10.26.0
dphulkar-msft Jul 24, 2024
c100256
check verison
dphulkar-msft Jul 24, 2024
6646a40
check with 20.04 ubuntu machine
dphulkar-msft Jul 24, 2024
795d754
check with 20.04 ubuntu machine
dphulkar-msft Jul 25, 2024
2c07eac
check with 22.04 ubuntu machine
dphulkar-msft Jul 25, 2024
833fbb1
check with 22.04 ubuntu machine
dphulkar-msft Jul 25, 2024
070a95a
check with 22.04 ubuntu machine
dphulkar-msft Jul 25, 2024
f4ec93e
check with 22.04 ubuntu machine azcopy version
dphulkar-msft Jul 25, 2024
0e56a72
pipeline version failure fix
dphulkar-msft Jul 25, 2024
e141120
Merge branch 'main' of https://github.com/Azure/azure-storage-azcopy …
dphulkar-msft Jul 25, 2024
f5f5ea2
version fix for deb package
dphulkar-msft Jul 25, 2024
5122d10
change log type for github release
dphulkar-msft Jul 25, 2024
b6444c3
added v10.26.0 release details
dphulkar-msft Jul 25, 2024
12c14ba
incorporated review comments
dphulkar-msft Jul 25, 2024
d95ed53
incorporated review comments
dphulkar-msft Jul 26, 2024
8c055e1
incorporated review comments
dphulkar-msft Jul 26, 2024
1b3f6a7
incorporated review comments
dphulkar-msft Jul 26, 2024
3eb97e5
Added support for M1 build release
dphulkar-msft Jul 26, 2024
c583b5c
Added support for M1 build release
dphulkar-msft Jul 26, 2024
6abcc0a
Added support for M1 build release
dphulkar-msft Jul 26, 2024
261987c
Added support for M1 build release
dphulkar-msft Jul 26, 2024
22bf19a
Added support for M1 build release
dphulkar-msft Jul 26, 2024
d4bb732
Added support for M1 build release
dphulkar-msft Jul 26, 2024
8daee2a
Added support for M1 build release
dphulkar-msft Jul 26, 2024
97fdd91
Added support for M1 build release
dphulkar-msft Jul 26, 2024
2d2f8e1
Added support for M1 build release
dphulkar-msft Jul 26, 2024
7c8dd3f
Added support for M1 build release
dphulkar-msft Jul 26, 2024
9647c33
Added support for M1 build release
dphulkar-msft Jul 26, 2024
8201b08
Added support for M1 build release
dphulkar-msft Jul 26, 2024
c37aedd
Added support for M1 build release
dphulkar-msft Jul 26, 2024
f34c3ba
Merge branch 'main' of https://github.com/Azure/azure-storage-azcopy …
dphulkar-msft Jul 26, 2024
ee1c67b
Added support for M1 build release
dphulkar-msft Jul 26, 2024
4cc7893
incorporated review comments
dphulkar-msft Jul 29, 2024
6ee8690
incorporated review comments
dphulkar-msft Jul 29, 2024
a7b67c3
Merge branch 'az-releasePipeline' of https://github.com/Azure/azure-s…
dphulkar-msft Jul 29, 2024
1d8e30e
incoporated review comments
dphulkar-msft Jul 29, 2024
9c8a2e1
incoporated review comments
dphulkar-msft Jul 29, 2024
e848e3e
removed m1 build code
dphulkar-msft Jul 29, 2024
8002d6b
removed m1 build code
dphulkar-msft Jul 29, 2024
e8f4997
removed m1 build code
dphulkar-msft Jul 29, 2024
3aab3ee
incorporated review comments
dphulkar-msft Jul 30, 2024
cc7c062
Merge branch 'main' of https://github.com/Azure/azure-storage-azcopy …
dphulkar-msft Jul 31, 2024
ecc521d
Integrate m1 build workflow to pipeline
dphulkar-msft Jul 31, 2024
34afe7e
Integrate m1 build workflow to pipeline
dphulkar-msft Jul 31, 2024
667ff35
Merge branch 'dphulkar/m1_build' of https://github.com/Azure/azure-st…
dphulkar-msft Jul 31, 2024
afd9a97
Merge branch 'dphulkar/m1_build' of https://github.com/Azure/azure-st…
dphulkar-msft Jul 31, 2024
c485a41
Merge branch 'dphulkar/m1_build' of https://github.com/Azure/azure-st…
dphulkar-msft Jul 31, 2024
03faf0f
Merge branch 'dphulkar/m1_build' of https://github.com/Azure/azure-st…
dphulkar-msft Jul 31, 2024
f495757
Merge branch 'dphulkar/m1_build' of https://github.com/Azure/azure-st…
dphulkar-msft Jul 31, 2024
2d753c1
Support M1 build workflow in release pipeline
dphulkar-msft Jul 31, 2024
9b8eebc
Support M1 build workflow in release pipeline
dphulkar-msft Jul 31, 2024
ba23241
incorporated review comments
dphulkar-msft Jul 31, 2024
cbc245e
incorporated review comments
dphulkar-msft Jul 31, 2024
8e47ce2
incorporated review comments
dphulkar-msft Jul 31, 2024
19d4b2d
incorporated review comments
dphulkar-msft Jul 31, 2024
39d770c
incorporated review comments
dphulkar-msft Jul 31, 2024
eedf199
incorporated review comments
dphulkar-msft Jul 31, 2024
2f552af
Merge branch 'main' of https://github.com/Azure/azure-storage-azcopy …
dphulkar-msft Jul 31, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions .github/workflows/build_m1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
inputs:
m1_url:
description: 'Target object in storage without SAS'
required: true
required: false
type: string

permissions:
Expand All @@ -28,14 +28,12 @@ jobs:
go-version: '1.22.5'

- name: Build
run: CGO_ENABLED=1 go build -o azcopy_darwin_arm64
run: |
mkdir -p output
CGO_ENABLED=1 go build -o output/azcopy_darwin_m1_arm64

- name: Azure Login
uses: Azure/[email protected]
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

- name: Upload to AzCopy to M1 container
run: AZCOPY_AUTO_LOGIN_TYPE=AzCLI ./azcopy_darwin_arm64 copy "azcopy_darwin_arm64" "${{ inputs.m1_url }}"
name: build-artifacts
path: output/
111 changes: 109 additions & 2 deletions release-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ parameters:
type: boolean
default: false

- name: publish_to_m1_container
displayName: 'Publish To M1 Container'
type: boolean
default: false

- name: post_release
displayName: 'Post Release on Github'
type: boolean
Expand Down Expand Up @@ -532,7 +537,85 @@ stages:
verbosity: 'Verbose'
alertWarningLevel: 'High'

#TODO: support build for mac m1
- job: Set_5
timeoutInMinutes: 360
strategy:
matrix:
MacOS-14-ARM64:
imageName: 'ubuntu-latest'
type: 'linux'
pool:
vmImage: $(imageName)

variables:
- group: AZCOPY_TESTS_VAR
- name: root_dir
value: '$(System.DefaultWorkingDirectory)'
- name: work_dir
value: '$(Build.SourcesDirectory)'
- name: archives
value: $(root_dir)/archives
- name: Publish_To_M1_Container
value: ${{ parameters.publish_to_m1_container }}

steps:
- task: GoTool@0
env:
GO111MODULE: 'on'
inputs:
version: $(AZCOPY_GOLANG_VERSION)

- script: |
echo 'Running GO Vet'
go vet
displayName: 'Golang Vet'
workingDirectory: $(System.DefaultWorkingDirectory)

- script: |
CGO_ENABLED=1 go build -o "$(root_dir)/azcopy"
displayName: 'Generate build'

- template: setup/azcopy_version_check_linux.yml
parameters:
azcopy_executable: $(root_dir)/azcopy

- template: setup/trigger_m1_build.yml

- script: |
mkdir -p $(archives)
darwin_arm64_m1_dir="$(work_dir)/azcopy_darwin_m1_arm64_$(azcopy_version)"

echo "##vso[task.setvariable variable=darwin_arm64_m1_dir]$darwin_arm64_m1_dir"
mkdir -p $darwin_arm64_m1_dir

cp NOTICE.txt $darwin_arm64_m1_dir
cp $(Build.ArtifactStagingDirectory)/azcopy $darwin_arm64_m1_dir
displayName: 'Copy required files for packaging'

- task: ArchiveFiles@2
displayName: 'Archive MacOS M1_ARM64 Build (must happen before signing/notarization)'
inputs:
rootFolderOrFile: '$(darwin_arm64_m1_dir)'
archiveFile: '$(archives)/azcopy_darwin_m1_arm64_$(azcopy_version).zip'
continueOnError: true

- script: |
rm -rf $(Build.ArtifactStagingDirectory)/azcopy
cp $(archives)/azcopy_darwin* $(Build.ArtifactStagingDirectory)
displayName: 'Copy zip to staging directory'

- task: PublishBuildArtifacts@1
inputs:
artifactName: 'azCopy-mac-temp'
displayName: 'Publish Artifacts'
condition: succeededOrFailed()

- task: ComponentGovernanceComponentDetection@0
inputs:
scanType: 'Register'
verbosity: 'Verbose'
alertWarningLevel: 'High'

# BuildArtifacts end here

- stage: SignArtifacts
Expand Down Expand Up @@ -867,8 +950,10 @@ stages:
- script: |
mkdir -p unzipped_amd64
mkdir -p unzipped_arm64
mkdir -p unzipped_m1_arm64
unzip -o azcopy*amd64*.zip -d unzipped_amd64
unzip -o azcopy*arm64*.zip -d unzipped_arm64
unzip -o azcopy_darwin_arm64*.zip -d unzipped_arm64
unzip -o azcopy_darwin_m1_arm64*.zip -d unzipped_m1_arm64

# Use find to retrieve the folder name
amd64FolderName=$(find unzipped_amd64 -maxdepth 1 -type d -name "azcopy_darwin_amd64*")
Expand All @@ -877,6 +962,9 @@ stages:
arm64FolderName=$(find unzipped_arm64 -maxdepth 1 -type d -name "azcopy_darwin_arm64*")
echo "ARM64 Folder name: $arm64FolderName"

m1Arm64FolderName=$(find unzipped_m1_arm64 -maxdepth 1 -type d -name "azcopy_darwin_m1_arm64*")
echo "ARM64 M1 Folder name: $m1Arm64FolderName"

# Check if there is exactly one matching directory for amd64
if [ $(echo "$amd64FolderName" | wc -l) -eq 1 ]; then
echo "Found matching AMD64 directory: $amd64FolderName"
Expand All @@ -899,6 +987,18 @@ stages:
exit 1
fi

cd $(Build.ArtifactStagingDirectory)

# Check if there is exactly one matching directory for arm64
if [ $(echo "$m1Arm64FolderName" | wc -l) -eq 1 ]; then
echo "Found matching ARM64 M1 directory: $m1Arm64FolderName"
cd "$m1Arm64FolderName"
mv azcopy $(Build.ArtifactStagingDirectory)/azcopy_darwin_m1_arm64
else
echo "Error: Expected exactly one matching ARM64 M1 directory, found $(echo "$m1Arm64FolderName" | wc -l)."
exit 1
fi

rm -rf $(Build.ArtifactStagingDirectory)/unzipped*
rm -rf $(Build.ArtifactStagingDirectory)/*.zip
sudo ls -ltR $(Build.ArtifactStagingDirectory)
Expand Down Expand Up @@ -1549,6 +1649,8 @@ stages:
value: 'azcopyvnextrelease'
- name: Publish_To_Container
value: ${{ parameters.publish_to_container }}
- name: Publish_To_M1_Container
value: ${{ parameters.publish_to_m1_container }}
- name: work_dir
value: '$(Build.SourcesDirectory)'

Expand Down Expand Up @@ -1639,6 +1741,11 @@ stages:
AZCOPY_AUTO_LOGIN_TYPE=AzCLI $executable_name cp "$(Build.ArtifactStagingDirectory)/azCopy-mac-signed/*" "$container_url" --recursive --put-md5=true
AZCOPY_AUTO_LOGIN_TYPE=AzCLI $executable_name cp "$(Build.ArtifactStagingDirectory)/*.zip" "$container_url" --put-md5=true

if [ $(Publish_To_M1_Container) = "True" ]; then
m1_container_url="https://azcopyvnextrelease.blob.core.windows.net/azcopy-m1-drops/azcopy-$azcopy_version-$today"
AZCOPY_AUTO_LOGIN_TYPE=AzCLI $executable_name cp "$(Build.ArtifactStagingDirectory)/azCopy-binaries/azcopy_darwin_m1_arm64" "$m1_container_url" --put-md5=true
fi

- ${{ if eq(parameters.post_release, true) }}:
- stage: ReleaseArtifacts
dependsOn: TestArtifacts
Expand Down
132 changes: 132 additions & 0 deletions setup/trigger_m1_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
steps:
- task: Bash@3
inputs:
targetType: 'inline'
script: |
echo "Triggering GitHub Actions workflow"

GITHUB_OWNER="Azure"
GITHUB_REPO="azure-storage-azcopy"
GITHUB_WORKFLOW_FILE="build_m1.yml"
GITHUB_REF="main"
GITHUB_WORKFLOW_NAME="Build AzCopy for M1 Mac"
ARTIFACTS_DIR="downloaded_artifacts" # Directory to save the downloaded artifacts

GITHUB_API_URL="https://api.github.com/repos/$GITHUB_OWNER/$GITHUB_REPO/actions/workflows/$GITHUB_WORKFLOW_FILE/dispatches"

# Create the JSON payload
PAYLOAD=$(jq -n --arg ref "$GITHUB_REF" '{ref: $ref}')

# Trigger the workflow
response=$(curl -w "%{http_code}" -X POST -H "Authorization: Bearer $(GITHUB_TOKEN)" -H "Accept: application/vnd.github.v3+json" $GITHUB_API_URL -d "$PAYLOAD")
echo "response: $response"

if [ $response -eq 204 ]; then
echo "Successfully triggered the workflow"
else
echo "Failed to trigger the workflow $response"
exit 1
fi


# GitHub API URL to list workflows
WORKFLOWS_URL="https://api.github.com/repos/$GITHUB_OWNER/$GITHUB_REPO/actions/workflows"

# Retrieve workflows
response=$(curl -s -H "Accept: application/vnd.github.v3+json" -H "Authorization: Bearer $(GITHUB_TOKEN)" "$WORKFLOWS_URL")

# Extract the workflow ID for the specified workflow name
workflow_id=$(echo $response | jq -r --arg workflow_name "$GITHUB_WORKFLOW_NAME" '.workflows[] | select(.name == $workflow_name) | .id')

if [ -z "$workflow_id" ]; then
echo "Workflow not found"
exit 1
else
echo "Workflow ID: $workflow_id"
fi

# Interval between polls (in seconds)
POLL_INTERVAL=15

# GitHub API URL to list workflow runs
WORKFLOW_RUNS_URL="https://api.github.com/repos/$GITHUB_OWNER/$GITHUB_REPO/actions/workflows/$workflow_id/runs"

# Function to check the status of the latest workflow run
check_status() {
runs_response=$(curl -s -H "Accept: application/vnd.github.v3+json" -H "Authorization: Bearer $(GITHUB_TOKEN)" "$WORKFLOW_RUNS_URL")

latest_run_status=$(echo $runs_response | jq -r '.workflow_runs[0].status')
latest_run_conclusion=$(echo $runs_response | jq -r '.workflow_runs[0].conclusion')
latest_run_id=$(echo $runs_response | jq -r '.workflow_runs[0].id')

if [ -z "$latest_run_id" ]; then
echo "No runs found for the workflow"
exit 1
else
echo "Latest Run ID: $latest_run_id"
echo "Latest Run Status: $latest_run_status"
echo "Latest Run Conclusion: $latest_run_conclusion"
fi

if [ "$latest_run_status" == "completed" ]; then
if [ "$latest_run_conclusion" == "success" ]; then
echo "Workflow run succeeded."
download_artifacts_and_extract $latest_run_id
exit 0
else
echo "Workflow run failed or was cancelled."
exit 1
fi
fi
}

# Function to download the artifacts from the specified workflow run
download_artifacts_and_extract() {
local run_id=$1
ARTIFACTS_URL="https://api.github.com/repos/$GITHUB_OWNER/$GITHUB_REPO/actions/runs/$run_id/artifacts"

# Create directory for artifacts
mkdir -p $ARTIFACTS_DIR

# Retrieve the list of artifacts
artifacts_response=$(curl -s -H "Accept: application/vnd.github.v3+json" -H "Authorization: Bearer $(GITHUB_TOKEN)" "$ARTIFACTS_URL")

# Extract the artifact download URLs
artifact_count=$(echo $artifacts_response | jq '.artifacts | length')
echo "Found $artifact_count artifacts."

if [ $artifact_count -eq 1 ]; then
artifact_name=$(echo $artifacts_response | jq -r ".artifacts[$i].name")
artifact_url=$(echo $artifacts_response | jq -r ".artifacts[$i].archive_download_url")

echo "Downloading artifact: $artifact_name"

download_response=$(curl -w "%{http_code}" -L -o "$ARTIFACTS_DIR/$artifact_name.zip" -H "Authorization: Bearer $(GITHUB_TOKEN)" "$artifact_url")
echo "download response: $download_response"

if [ $? -eq 0 ]; then
echo "Successfully downloaded $artifact_name to $ARTIFACTS_DIR"
# Extract the artifact
mkdir -p $ARTIFACTS_DIR/unzipped_artifacts
ls -ltR $ARTIFACTS_DIR/
unzip -o $ARTIFACTS_DIR/$artifact_name* -d "$ARTIFACTS_DIR/unzipped_artifacts"
mv $ARTIFACTS_DIR/unzipped_artifacts/azcopy_darwin_m1_arm64 $(Build.ArtifactStagingDirectory)/azcopy
else
echo "Failed to download $artifact_name"
exit 1
fi
else
echo "No artifacts found for the specified workflow run."
exit 1
fi
}

# Poll the workflow status until it completes
while true; do
check_status
echo "Workflow run is still in progress. Checking again in $POLL_INTERVAL seconds..."
sleep $POLL_INTERVAL
done

displayName: 'Trigger GitHub Actions workflow'

Loading