save
This commit is contained in:
parent
a9651ecf11
commit
5af9ebc087
|
@ -17,42 +17,46 @@ jobs:
|
||||||
contents: write
|
contents: write
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
# - uses: actions/checkout@v3
|
||||||
with:
|
# with:
|
||||||
fetch-depth: '0'
|
# fetch-depth: '0'
|
||||||
|
|
||||||
- name: Setup WooCommerce Monorepo
|
# - name: Setup WooCommerce Monorepo
|
||||||
uses: ./.github/actions/setup-woocommerce-monorepo
|
# uses: ./.github/actions/setup-woocommerce-monorepo
|
||||||
|
|
||||||
- name: Execute script
|
# - name: Execute script
|
||||||
run: ./tools/package-release/bin/dev prepare ${{ github.event.inputs.packages }}
|
# run: ./tools/package-release/bin/dev prepare ${{ github.event.inputs.packages }}
|
||||||
|
|
||||||
- name: Print git status
|
# - name: Print git status
|
||||||
run: git status
|
# run: git status
|
||||||
|
|
||||||
- name: Get current date
|
# - name: Get current date
|
||||||
id: date
|
# id: date
|
||||||
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
|
# run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Set all package string
|
- name: Get id string
|
||||||
id: all_description
|
id: id
|
||||||
if: ${{ github.event.inputs.packages == '-a'}}
|
run: echo ${${{ github.event.inputs.packages }}//','/''}
|
||||||
run: echo "str=all packages" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
- name: Set Specific packages string
|
# - name: Set all package string
|
||||||
id: specific_description
|
# id: all_description
|
||||||
if: ${{ github.event.inputs.packages != '-a'}}
|
# if: ${{ github.event.inputs.packages == '-a'}}
|
||||||
run: echo "str=${{ github.event.inputs.packages }}" >> $GITHUB_OUTPUT
|
# run: echo "str=all packages" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Create Pull Request
|
# - name: Set Specific packages string
|
||||||
uses: peter-evans/create-pull-request@v4
|
# id: specific_description
|
||||||
with:
|
# if: ${{ github.event.inputs.packages != '-a'}}
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
# run: echo "str=${{ github.event.inputs.packages }}" >> $GITHUB_OUTPUT
|
||||||
commit-message: 'Automated change: Prep ${{ steps.all_description.outputs.str || steps.specific_description.outputs.str }} for release.'
|
|
||||||
branch: release/packages-${{ steps.date.outputs.date }}-${{ github.event.inputs.packages.replace(/,/g, '-').replace(/@/g, '') }}
|
# - name: Create Pull Request
|
||||||
delete-branch: true
|
# uses: peter-evans/create-pull-request@v4
|
||||||
title: Prepare Packages for Release
|
# with:
|
||||||
reviewers: ${{ github.actor }}
|
# token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
body: |
|
# commit-message: 'Automated change: Prep ${{ steps.all_description.outputs.str || steps.specific_description.outputs.str }} for release.'
|
||||||
# Prepare ${{ steps.all_description.outputs.str || steps.specific_description.outputs.str }} for release.
|
# branch: release/packages-${{ steps.date.outputs.date }}-${{ github.event.inputs.packages.replace(/,/g, '-').replace(/@/g, '') }}
|
||||||
This PR has been autogenerated by [Prepare Package Release workflow](https://github.com/woocommerce/woocommerce/actions/workflows/prepare-package-release.yml) in run [${{ github.run_id }}](https://github.com/woocommerce/woocommerce/actions/runs/${{ github.run_id }})
|
# delete-branch: true
|
||||||
|
# title: Prepare Packages for Release
|
||||||
|
# reviewers: ${{ github.actor }}
|
||||||
|
# body: |
|
||||||
|
# # Prepare ${{ steps.all_description.outputs.str || steps.specific_description.outputs.str }} for release.
|
||||||
|
# This PR has been autogenerated by [Prepare Package Release workflow](https://github.com/woocommerce/woocommerce/actions/workflows/prepare-package-release.yml) in run [${{ github.run_id }}](https://github.com/woocommerce/woocommerce/actions/runs/${{ github.run_id }})
|
||||||
|
|
Loading…
Reference in New Issue