Skip to content

Commit

Permalink
[DEVOPS-3045] Update deprecated github workflow actions
Browse files Browse the repository at this point in the history
Summary:
Update workflow actions marked as deprecated in github workflow logs.

Also remove dispatches to utilities repo that is not running any workflows and the yugabyte-db-action repo that has been unmaintained and workflows consistently fail.

Test Plan:
Tested on forked repo, which does not have secret tokens, but does run through code with no
deprecation warnings: https://github.com/svarnau/yugabyte-db/actions/runs/8207459381

Reviewers: jharveysmith

Reviewed By: jharveysmith

Subscribers: devops

Differential Revision: https://phorge.dev.yugabyte.com/D32998
  • Loading branch information
svarnau committed Mar 8, 2024
1 parent c0b7307 commit b779095
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
remove-dotnet: 'true'
overprovision-lvm: 'true'

- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Build YugabyteDB
run: |
Expand Down
37 changes: 10 additions & 27 deletions .github/workflows/create-repository-dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
createRepositoryDispatch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: "Determine release train"
id: yb_train
run: |
Expand All @@ -25,7 +25,7 @@ jobs:
fi
fi
echo "Release train determined: $train"
echo "::set-output name=yb_train::${train}"
echo "yb_train=${train}" >> "$GITHUB_ENV"
- name: "Trigger Repository Dispatch - yugabyte/terraform-gcp-yugabyte"
run: |
Expand All @@ -35,7 +35,7 @@ jobs:
--data '{"event_type": "build-on-release", "client_payload":
{"prerelease": "${{ github.event.release.prerelease }}",
"release": "${{github.event.release.tag_name}}",
"yb_release_train": "${{steps.yb_train.outputs.yb_train}}" } }'
"yb_release_train": "'${yb_train}'" } }'
- name: "Trigger Repository Dispatch - yugabyte/terraform-aws-yugabyte"
run: |
Expand All @@ -45,7 +45,7 @@ jobs:
--data '{"event_type": "build-on-release", "client_payload":
{"prerelease": "${{ github.event.release.prerelease }}",
"release": "${{github.event.release.tag_name}}",
"yb_release_train": "${{steps.yb_train.outputs.yb_train}}" } }'
"yb_release_train": "'${yb_train}'" } }'
- name: "Trigger Repository Dispatch - yugabyte/terraform-azure-yugabyte"
run: |
Expand All @@ -55,7 +55,7 @@ jobs:
--data '{"event_type": "build-on-release", "client_payload":
{"prerelease": "${{ github.event.release.prerelease }}",
"release": "${{github.event.release.tag_name}}",
"yb_release_train": "${{steps.yb_train.outputs.yb_train}}" } }'
"yb_release_train": "'${yb_train}'" } }'
- name: "Trigger Repository Dispatch - yugabyte/azure-resource-manager"
run: |
Expand All @@ -65,7 +65,7 @@ jobs:
--data '{"event_type": "build-on-release", "client_payload":
{"prerelease": "${{ github.event.release.prerelease }}",
"release": "${{github.event.release.tag_name}}",
"yb_release_train": "${{steps.yb_train.outputs.yb_train}}" } }'
"yb_release_train": "'${yb_train}'" } }'
- name: "Trigger Repository Dispatch - yugabyte/gcp-deployment-manager"
run: |
Expand All @@ -75,7 +75,7 @@ jobs:
--data '{"event_type": "build-on-release", "client_payload":
{"prerelease": "${{ github.event.release.prerelease }}",
"release": "${{github.event.release.tag_name}}",
"yb_release_train": "${{steps.yb_train.outputs.yb_train}}" } }'
"yb_release_train": "'${yb_train}'" } }'
- name: "Trigger Repository Dispatch - yugabyte/aws-cloudformation"
run: |
Expand All @@ -85,7 +85,7 @@ jobs:
--data '{"event_type": "build-on-release", "client_payload":
{"prerelease": "${{ github.event.release.prerelease }}",
"release": "${{github.event.release.tag_name}}",
"yb_release_train": "${{steps.yb_train.outputs.yb_train}}" } }'
"yb_release_train": "'${yb_train}'" } }'
- name: "Trigger Repository Dispatch - yugabyte/homebrew-tap"
run: |
Expand All @@ -95,17 +95,7 @@ jobs:
--data '{"event_type": "update-on-release", "client_payload":
{"prerelease": "${{ github.event.release.prerelease }}",
"release": "${{github.event.release.tag_name}}",
"yb_release_train": "${{steps.yb_train.outputs.yb_train}}" } }'
- name: "Trigger Repository Dispatch - yugabyte/utilities"
run: |
curl -XPOST -u "${{ secrets.PAT_USERNAME}}:${{secrets.PAT_TOKEN}}" \
-H "Accept: application/vnd.github.everest-preview+json" \
-H "Content-Type: application/json" https://api.github.com/repos/yugabyte/utilities/dispatches \
--data '{"event_type": "build-on-release", "client_payload":
{"prerelease": "${{ github.event.release.prerelease }}",
"release": "${{github.event.release.tag_name}}",
"yb_release_train": "${{steps.yb_train.outputs.yb_train}}" } }'
"yb_release_train": "'${yb_train}'" } }'
- name: "Trigger Repository Dispatch - yugabyte/charts"
run: |
Expand All @@ -115,14 +105,7 @@ jobs:
--data '{"event_type": "update-on-release", "client_payload":
{"prerelease": "${{ github.event.release.prerelease }}",
"release": "${{github.event.release.tag_name}}",
"yb_release_train": "${{steps.yb_train.outputs.yb_train}}" } }'
- name: "Trigger Repository Dispatch - yugabyte/yugabyte-db-action"
run: |
curl -XPOST -u "${{ secrets.PAT_USERNAME}}:${{secrets.PAT_TOKEN}}" \
-H "Accept: application/vnd.github.everest-preview+json" \
-H "Content-Type: application/json" https://api.github.com/repos/yugabyte/yugabyte-db-action/dispatches \
--data '{"event_type": "on-release"}'
"yb_release_train": "'${yb_train}'" } }'
- name: "Trigger Repository Dispatch - yugabyte/yugabyte-operator"
run: |
Expand Down

0 comments on commit b779095

Please sign in to comment.