7474 fi
7575 done
7676
77- - name : Trigger the target workflow
77+ - name : Release the CDK
7878 env :
7979 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Automatically provided by GitHub Actions
8080 run : |
@@ -94,39 +94,38 @@ jobs:
9494 echo "Workflow run $RUN_ID finished."
9595 working-directory : ${{ github.workspace }} # Ensure gh command runs from the repo root
9696
97- - name : Commit changes
98- run : |
99- git add .
100- git commit -m "Bump the cdk version to ${{ github.event.inputs.version }}"
101- git push
102-
103- - name : Respond to user
104- uses : actions/github-script@v6
105- with :
106- script : |
107- github.rest.issues.createComment({
108- issue_number: context.issue.number,
109- owner: context.repo.owner,
110- repo: context.repo.repo,
111- body: "Java CDK version bumped to `${{ env.new_version }}` and connectors updated successfully. 🚀"
112- })
113-
114- - name : Trigger the target workflow
97+ - name : Release the connector
11598 env :
11699 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Automatically provided by GitHub Actions
117100 run : |
118101 modified_files=$(git diff --name-only origin/master)
119-
102+
120103 # Process the list to get the unique connector folder names
121104 connector_folders=$(echo "$modified_files" | \
122105 grep -oP 'airbyte-integrations/connectors/\K[^/]+' | \
123106 sort | \
124107 uniq)
125-
108+
126109 # Read each line from the connector_folders variable
127110 echo "$connector_folders" | while read -r folder; do
128111 # Call the function, passing the current folder name as an argument
129112 gh workflow run 'Connector Ops CI - Publish Connectors' --ref ${{ github.ref_name }} -F connectors-option="--name=$folder" -F gitref=${{ github.ref_name }}
130113 done
131114 working-directory : ${{ github.workspace }} # Ensure gh command runs from the repo root
132115
116+ - name : Commit changes
117+ run : |
118+ git add .
119+ git commit -m "Bump the cdk version to ${{ github.event.inputs.version }}"
120+ git push
121+
122+ - name : Respond to user
123+ uses : actions/github-script@v6
124+ with :
125+ script : |
126+ github.rest.issues.createComment({
127+ issue_number: context.issue.number,
128+ owner: context.repo.owner,
129+ repo: context.repo.repo,
130+ body: "Java CDK version bumped to `${{ env.new_version }}` and connectors updated successfully. 🚀"
131+ })
0 commit comments