Compare commits

...

8 Commits

Author SHA1 Message Date
Abdullah Waheed
5949e16c1d chore: testing with new branch 2022-12-19 17:32:35 +05:00
Abdullah Waheed
845f64aac3 chore: testing with passing secrets 2022-12-19 17:15:50 +05:00
Abdullah Waheed
e44e58b9b8 chore: testing with passing secrets 2022-12-19 17:10:25 +05:00
Abdullah Waheed
82679c555b chore: testing with passing secrets 2022-12-19 17:01:48 +05:00
Abdullah Waheed
d6715558b3 chore: testing with passing secrets 2022-12-19 16:57:15 +05:00
Abdullah Waheed
898ced0057 chore: testing with passing secrets 2022-12-19 16:53:45 +05:00
Abdullah Waheed
ac79b72b06 chore: temp for testing 2022-12-19 16:40:47 +05:00
Abdullah Waheed
9c28284b4b chore: used a shared script to update broswerslist DB 2022-12-19 12:23:40 +05:00

View File

@@ -1,41 +1,12 @@
name: Update Browserlist DB
name: Update Browserslist DB
on:
schedule:
- cron: '0 0 * * 1'
workflow_dispatch:
jobs:
update-dep:
runs-on: ubuntu-latest
strategy:
matrix:
node: [16]
npm: [8.5.x]
update-browserslist-db:
uses: abdullahwaheed/.github/.github/workflows/update-browserslist-db.yml@abdullahwaheed/shared-browserslist-update-worklow-fixes
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- run: npm install -g npm@${{ matrix.npm }}
- run: make requirements
- name: Update dependencies
run: npx browserslist@latest --update-db
- name: setup testeng-ci
run: |
git clone https://github.com/edx/testeng-ci.git
cd $GITHUB_WORKSPACE/testeng-ci
pip install -r requirements/base.txt
- name: create pull request
id: createpullrequest
env:
GITHUB_TOKEN: ${{ secrets.requirements_bot_github_token }}
GITHUB_USER_EMAIL: ${{ secrets.requirements_bot_github_email }}
run: |
cd $GITHUB_WORKSPACE/testeng-ci
python -m jenkins.pull_request_creator --repo-root=$GITHUB_WORKSPACE \
--target-branch="master" --base-branch-name="update-browserslist" \
--commit-message="chore: update browserslist" --pr-title="Update browserslist DB" \
--pr-body="Updated browserlist DB" --delete-old-pull-requests --output-pr-url-for-github-action
secrets:
requirements_bot_github_token: ${{ secrets.requirements_bot_github_token }}