Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions .github/workflows/update-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ jobs:
permissions:
contents: write
pull-requests: write
issues: read
actions: read

steps:
- name: 🔍 Checkout repository
Expand Down Expand Up @@ -48,16 +46,18 @@ jobs:

- name: 🚀 Get latest SDK releases
id: latest-versions
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "🔄 Fetching latest releases..."

# Get iOS release
IOS_RELEASE=$(curl -s https://api.github.com/repos/intercom/intercom-ios/releases/latest)
IOS_RELEASE=$(gh api repos/intercom/intercom-ios/releases/latest 2>/dev/null || echo '{}')
IOS_VERSION=$(echo "$IOS_RELEASE" | jq -r '.tag_name // "null"')
IOS_CHANGELOG=$(echo "$IOS_RELEASE" | jq -r '.body // "No changelog available"')

# Get Android release
ANDROID_RELEASE=$(curl -s https://api.github.com/repos/intercom/intercom-android/releases/latest)
ANDROID_RELEASE=$(gh api repos/intercom/intercom-android/releases/latest 2>/dev/null || echo '{}')
ANDROID_VERSION=$(echo "$ANDROID_RELEASE" | jq -r '.tag_name // "null"')
ANDROID_CHANGELOG=$(echo "$ANDROID_RELEASE" | jq -r '.body // "No changelog available"')

Expand Down Expand Up @@ -419,12 +419,14 @@ jobs:
🤖 This PR was automatically created by the [Update Dependencies workflow](.github/workflows/update-dependencies.yml).
EOF

# Create PR
# Create PR and assign to team
if gh pr create \
--title "chore: update Intercom SDK dependencies (${{ steps.update-files.outputs.pr_title_parts }})" \
--body-file pr_body.md \
--head "${{ steps.create-branch.outputs.branch_name }}" \
--base "main"; then
--base "main" \
--assignee "@intercom/team-messenger" \
--reviewer "intercom/team-messenger"; then
echo "✅ Pull request created successfully!"
else
echo "❌ Failed to create pull request"
Expand Down
Loading