trigger-release #4
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 Workflow | ||
on: | ||
repository_dispatch: | ||
types: [trigger-release] | ||
jobs: | ||
create-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Set up Git | ||
run: | | ||
git config user.name "nanuijaz" | ||
git config user.email "[email protected]" | ||
- name: Get latest release version | ||
id: get-latest-release | ||
run: | | ||
latestTag=$(curl -s "https://api.github.com/repos/IntersecMBO/cardano-node/releases/latest" | jq -r '.tag_name') | ||
echo "{latestTag}={$latestTag}" >> $GITHUB_OUTPUT | ||
- name: Create release in forked repository | ||
run: | | ||
Check failure on line 28 in .github/workflows/create-release.yaml GitHub Actions / Release WorkflowInvalid workflow file
|
||
git tag -a "${{ GITHUB_OUTPUT }}" -m "Release notes for ${{ GITHUB_OUTPUT }}" | ||
git push origin "${{ GITHUB_OUTPUT }}" |