diff --git a/.github/workflows/push-deploy.yml b/.github/workflows/push-deploy.yml index c48ba331..052ae98c 100644 --- a/.github/workflows/push-deploy.yml +++ b/.github/workflows/push-deploy.yml @@ -1,11 +1,8 @@ name: Deploy to WordPress.org on: - # Trigger on push with tags push: tags: - "*" - - # Trigger manually from GitHub Actions UI workflow_dispatch: jobs: @@ -18,6 +15,9 @@ jobs: - name: Checkout code uses: actions/checkout@v3 + with: + fetch-depth: 0 + ref: ${{ github.ref }} # Step to fix the "dubious ownership" issue - name: Set safe directory for Git @@ -29,3 +29,4 @@ jobs: SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} SVN_USERNAME: ${{ secrets.SVN_USERNAME }} SLUG: tour-operator + TAG: ${{ github.ref_name }}