Skip to content

Release Deploy

Release Deploy #11

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / Release Deploy

Invalid workflow file

The workflow is not valid. .github/workflows/release-deploy.yml (Line: 22, Col: 12): Unrecognized named-value: 'GIT_TAG'. Located at position 1 within expression: GIT_TAG
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