Skip to content

Update Versions

Update Versions #2

# This is a basic workflow that is manually triggered
name: Update Versions
# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API.
on:
workflow_dispatch:
# Inputs the workflow accepts.
inputs:
version:
description: 'New version to use for the Target extension. Example: 4.0.2'
required: true
branch:
description: 'Branch to be used when updating versions'
required: true
core-dependency:
description: 'If a version is provided, update AEPCore dependency in podspec and Package.swift'
required: false
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
update-versions:
runs-on: macos-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout
uses: actions/[email protected]
with:
ref: ${{ github.event.inputs.branch }}
- name: Update AEPTarget
run: (sh ./Script/update-versions.sh -n Target -v ${{ github.event.inputs.version }} -d "AEPCore ${{ github.event.inputs.core-dependency }}")
- name: Create Pull Request
uses: peter-evans/[email protected]
with:
token: ${{ github.token }}
commit-message: Updating version to ${{ github.event.inputs.version }}.
branch: version-${{ github.event.inputs.version }}-update
delete-branch: true
title: Updating version to ${{ github.event.inputs.version }}
body: Updating version to ${{ github.event.inputs.version }}