Update Descope Dependencies #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Descope Dependencies | |
on: | |
schedule: | |
# Runs at 00:00 UTC every 2 weeks on Monday | |
- cron: "0 0 * * 1/2" | |
workflow_dispatch: | |
jobs: | |
update-versions: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "16" | |
- name: Update versions in HTML and JavaScript files | |
run: | | |
chmod +x ./.github/workflows/update-versions.sh | |
./.github/workflows/update-versions.sh | |
- name: Commit and push if changes are detected | |
run: | | |
git add . | |
git diff --quiet && git diff --staged --quiet || (git commit -m "Update @descope dependencies to actual latest versions" && git push) | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v4 | |
with: | |
commit-message: Update @descope dependencies | |
title: "[AUTO] Update @descope Dependencies to Actual Latest Versions" | |
body: Updates the versions of @descope/web-component and @descope/web-js-sdk to their actual latest versions across all mentions and imports. | |
branch: update-descope-versions | |
delete-branch: true |