Push new version number to API #84
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: Push new version number to API | |
on: | |
workflow_dispatch: | |
inputs: | |
push_mainnet: | |
description: "mainnet" | |
type: boolean | |
default: false | |
push_testnet: | |
description: "testnet" | |
type: boolean | |
default: false | |
jobs: | |
Push: | |
name: Push Version to API | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v4 | |
- name: Push version string to mainnet API | |
if: ${{ inputs.push_mainnet }} | |
run: ./ironfish-cli/scripts/push-version.sh | |
env: | |
IRON_FISH_API_KEY: ${{ secrets.IRON_FISH_API_KEY }} | |
IRON_FISH_API_URL: ${{ secrets.IRON_FISH_API_URL }} | |
- name: Push version string to testnet API | |
if: ${{ inputs.push_testnet }} | |
run: ./ironfish-cli/scripts/push-version.sh | |
env: | |
IRON_FISH_API_KEY: ${{ secrets.IRON_FISH_API_KEY_TESTNET }} | |
IRON_FISH_API_URL: ${{ secrets.IRON_FISH_API_URL_TESTNET }} |