Skip to content

Commit

Permalink
devops: fix stable docs roll workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt committed Sep 13, 2024
1 parent 17be8fe commit a9b59b4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
if: github.repository == 'microsoft/playwright.dev' && startsWith(github.head_ref, 'roll/')
steps:
- name: Merge pull request
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GH_SERVICE_ACCOUNT_TOKEN }}
script: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/roll-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
git commit -m "feat(roll): roll to ToT Playwright ($(date +"%d-%m-%y"))"
git push origin $BRANCH_NAME --force
- name: Create Pull Request
uses: actions/github-script@v6
uses: actions/github-script@v7
if: ${{ steps.prepare-branch.outputs.HAS_CHANGES == '1' }}
with:
github-token: ${{ secrets.GH_SERVICE_ACCOUNT_TOKEN }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/roll-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:
id: determine-version
with:
script: |
const allBranches = await github.rest.repos.listBranches({
const allBranches = await github.paginate("GET /repos/{owner}/{repo}/branches", {
owner: 'microsoft',
repo: 'playwright',
});
const relevantBranches = allBranches.data.filter(branch => branch.name.startsWith('release-'));
const relevantBranches = allBranches.filter(branch => branch.name.startsWith('release-'));
relevantBranches.sort((a, b) => {
const aVersion = parseFloat(a.name.split('-')[1]);
const bVersion = parseFloat(b.name.split('-')[1]);
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
git commit -m "feat(roll): roll to ${{ steps.determine-version.outputs.result }} Playwright"
git push origin $BRANCH_NAME --force
- name: Create Pull Request
uses: actions/github-script@v6
uses: actions/github-script@v7
if: ${{ steps.prepare-branch.outputs.HAS_CHANGES == '1' }}
with:
github-token: ${{ secrets.GH_SERVICE_ACCOUNT_TOKEN }}
Expand Down

0 comments on commit a9b59b4

Please sign in to comment.