Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
gaokevin1 authored Mar 5, 2024
1 parent c85586f commit b8a1a6c
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/update-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: Update Descope Dependencies

on:
schedule:
# Runs at 00:00 UTC every 2 weeks on Monday
- cron: "0 0 * * 1/2"
- cron: '0 0 * * 1'
workflow_dispatch:

jobs:
Expand All @@ -24,19 +23,19 @@ jobs:
chmod +x ./.github/workflows/update-versions.sh
./.github/workflows/update-versions.sh
- name: Commit and push if changes are detected
- name: Commit changes
run: |
git add .
git config --global user.email "actions@github.com"
git config --global user.name "GitHub Actions Bot"
git diff --quiet && git diff --staged --quiet || (git commit -m "Update @descope dependencies to actual latest versions" && git push)
git add .
git diff --quiet && git diff --staged --quiet || git commit -m "Update @descope dependencies to actual latest versions"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Update webjs-sdk and web-component versions
title: "Automated Dependency Update"
title: "Automated Dependency Update $(date +'%Y-%m-%d %H:%M:%S')"
body: "This is an automated pull request to update the versions of @descope/webjs-sdk and @descope/web-component."
branch: "update-dependencies-$(date +%Y%m%d)"
branch: "update-dependencies-${{ github.run_id }}"
base: "main"

0 comments on commit b8a1a6c

Please sign in to comment.