|
|
@@ -61,29 +61,6 @@ jobs:
|
|
|
env:
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
- # Remove changelog-ready label from changeset PR if present
|
|
|
- - name: Remove changelog-ready label from changeset PR
|
|
|
- if: steps.changesets.outputs.pullRequestNumber
|
|
|
- uses: actions/github-script@v7
|
|
|
- with:
|
|
|
- github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
- script: |
|
|
|
- try {
|
|
|
- await github.rest.issues.removeLabel({
|
|
|
- owner: context.repo.owner,
|
|
|
- repo: context.repo.repo,
|
|
|
- issue_number: ${{ steps.changesets.outputs.pullRequestNumber }},
|
|
|
- name: 'changelog-ready'
|
|
|
- });
|
|
|
- console.log('Removed changelog-ready label from changeset PR');
|
|
|
- } catch (error) {
|
|
|
- if (error.status === 404) {
|
|
|
- console.log('changelog-ready label was not present on changeset PR');
|
|
|
- } else {
|
|
|
- throw error;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
# Get current and previous versions to edit changelog entry
|
|
|
- name: Get version
|
|
|
if: steps.changesets.outputs.pullRequestNumber
|
|
|
@@ -127,18 +104,4 @@ jobs:
|
|
|
echo "--------------------------------------------------------------------------------"
|
|
|
echo "Pushing to remote..."
|
|
|
echo "--------------------------------------------------------------------------------"
|
|
|
- git push --set-upstream origin HEAD
|
|
|
-
|
|
|
- # Add label to indicate changelog has been formatted
|
|
|
- - name: Add changelog-ready label
|
|
|
- if: steps.changesets.outputs.pullRequestNumber
|
|
|
- uses: actions/github-script@v7
|
|
|
- with:
|
|
|
- github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
- script: |
|
|
|
- await github.rest.issues.addLabels({
|
|
|
- owner: context.repo.owner,
|
|
|
- repo: context.repo.repo,
|
|
|
- issue_number: ${{ steps.changesets.outputs.pullRequestNumber }},
|
|
|
- labels: ['changelog-ready']
|
|
|
- });
|
|
|
+ git push --set-upstream origin HEAD
|