From 44e68eea05212eabb93785ef533b0e7cebde6db0 Mon Sep 17 00:00:00 2001 From: emawby Date: Wed, 15 Nov 2023 15:40:15 -0800 Subject: [PATCH] test update path --- .github/workflows/cd.yml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index c70621b2c..754a9eca9 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -1,6 +1,10 @@ name: iOS CD on: + push: + branches: + - 'add_cd' + workflow_dispatch: inputs: version: @@ -9,6 +13,8 @@ on: required: true permissions: contents: write +env: + version: '5.0.6' jobs: build: @@ -27,14 +33,14 @@ jobs: - name: Build Binaries run: | - chmod +x ./../../iOS_SDK/OneSignalSDK/build_all_frameworks.sh - ./../../iOS_SDK/OneSignalSDK/build_all_frameworks.sh - # chmod +x ./../../iOS_SDK/OneSignalSDK/update_swift_package.sh - # ./../../iOS_SDK/OneSignalSDK/update_swift_package.sh + chmod +x ./iOS_SDK/OneSignalSDK/build_all_frameworks.sh + ./iOS_SDK/OneSignalSDK/build_all_frameworks.sh + # chmod +x ./iOS_SDK/OneSignalSDK/update_swift_package.sh + # ./iOS_SDK/OneSignalSDK/update_swift_package.sh shell: bash - name: Commit Changes env: - version: ${{ inputs.version }} + version: $version run: | git config --local user.email "noreply@onesingal.com" git config --local user.name "SyncR 🤖" @@ -47,7 +53,7 @@ jobs: # github_token: ${{ secrets.ACTION_TOKEN_PAT }} repository: 'OneSignal/OneSignal-iOS-SDK' force: true - branch: ${{ inputs.version }} + branch: $version - name: "Submitting PR" uses: octokit/request-action@v2.x @@ -55,10 +61,10 @@ jobs: route: POST /repos/{owner}/{repo}/pulls owner: OneSignal repo: OneSignal-iOS-SDK - head: ${{ inputs.version }} + head: $version base: main title: | - "Release ${{ inputs.version }}" + "Release $version" body: | "Add Release Notes For Review Here" # env: