Skip to content

Commit

Permalink
Merge pull request dapr#8325 from artursouza/clean_dapr_release
Browse files Browse the repository at this point in the history
Stop nightly buids and remove longhaul update.
  • Loading branch information
JoshVanL authored Dec 2, 2024
2 parents 24ac3b8 + 34f0b87 commit 6c488fd
Showing 1 changed file with 0 additions and 58 deletions.
58 changes: 0 additions & 58 deletions .github/workflows/dapr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ name: dapr

on:
workflow_dispatch:
schedule:
- cron: "00 22 * * *"
push:
branches:
- main
Expand Down Expand Up @@ -740,59 +738,3 @@ jobs:
echo "::error::There is no change for ${daprVersion} Helm chart. Did you forget to update the chart version before tagging?"
exit -1
fi
update-longhauls:
name: Update the dapr version in long haul tests
needs: helmpublish
runs-on: ubuntu-latest
permissions:
contents: write
if: startswith(github.ref, 'refs/tags/v') && github.repository_owner == 'dapr'
env:
LONG_HAUL_REPO: test-infra
steps:
- name: Get Token
id: get_workflow_token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.APPLICATION_ID }}
private-key: ${{ secrets.APPLICATION_PRIVATE_KEY }}
repositories: ${{ env.LONG_HAUL_REPO }}
- name: Check out code into the Go module directory
uses: actions/checkout@v4
with:
path: dapr
- name: Checkout the longhaul tests repo
uses: actions/checkout@v4
with:
repository: dapr/${{ env.LONG_HAUL_REPO }}
token: ${{ steps.get_workflow_token.outputs.token }}
path: ${{ env.LONG_HAUL_REPO }}
- name: Install Python Dependencies
run: |
pip install packaging
- name: Parse release version and set REL_VERSION and LATEST_RELEASE
run: python dapr/.github/scripts/get_release_version.py ${{ github.event_name }}

- name: Compare versions and determine if update of long haul tests is required
id: compare_versions
run: |
EXISTING_VERSION=$(cat "${{ env.LONG_HAUL_REPO }}/config/dapr_runtime.version")
echo "Existing version in long haul tests: $EXISTING_VERSION"
echo "New version: ${{ env.REL_VERSION }}"
python dapr/.github/scripts/compare_versions.py "${{ env.REL_VERSION }}" "$EXISTING_VERSION"
- name: Update dapr runtime version in the long haul tests repo
if: env.VERSION_UPDATE_REQUIRED == 'true'
run: |
echo "${REL_VERSION}" > ${{ env.LONG_HAUL_REPO }}/config/dapr_runtime.version
- name: Commit and Push Changes to repoB
if: env.VERSION_UPDATE_REQUIRED == 'true'
run: |
cd ${{ env.LONG_HAUL_REPO }}
git config --global user.name "github-actions"
git config --global user.email "[email protected]"
git add config/dapr_runtime.version
git commit -m "Updates dapr runtime version to ${REL_VERSION}"
git push

0 comments on commit 6c488fd

Please sign in to comment.