Release Deploy #11
Workflow file for this run
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: Release Deploy | ||
on: | ||
release: | ||
types: [published] | ||
workflow_dispatch: | ||
inputs: | ||
newVersion: | ||
description: 'New Version' | ||
default: '4.0.0' | ||
required: true | ||
jobs: | ||
updatePackageSwift: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Get current tag | ||
run: echo "GIT_TAG=`echo $(git describe --tags --abbrev=0)`" >> $GITHUB_ENV | ||
- name: Update Package.swift with release ref | ||
run: ./Scripts/UpdatePackageManifest.bash ${{ GIT_TAG }} | ||
Check failure on line 22 in .github/workflows/release-deploy.yml GitHub Actions / Release DeployInvalid workflow file
|
||
if: github.event_name == 'release' | ||
- name: Update Package.swift with new version | ||
run: ./Scripts/UpdatePackageManifest.bash ${{ github.event.inputs.newVersion }} | ||
if: github.event_name == 'workflow_dispatch' | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
title: '[Release] Confirm New Version' | ||
base: main |