Skip to content

Commit

Permalink
WIP output
Browse files Browse the repository at this point in the history
  • Loading branch information
zwhitfield3 committed Mar 26, 2024
1 parent 165339f commit 51ad1f8
Showing 1 changed file with 14 additions and 17 deletions.
31 changes: 14 additions & 17 deletions .github/workflows/publish-to-fig-autocomplete.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ on:
workflow_dispatch:

jobs:
push-to-fig-autocomplete:
push-to-fig-autocomplete:
runs-on: pub-hk-ubuntu-22.04-small
# outputs:
# version-output: ${{ steps.cli-version.outputs.version }}
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16.x
Expand All @@ -21,19 +19,18 @@ jobs:
- run: yarn --immutable --network-timeout 1000000
- name: Build Heroku CLI
run: yarn build
- name: Generate Fig Spec
run: cd packages/cli && ./bin/run generate-fig-spec > spec.ts
- name: Get Heroku Version
id: cli-version
run: echo "version=$(heroku version | sed -rn 's/^heroku\/([0-9\.]+).*$/\1/p')"
- name: Create Fig Autocomplete PR
uses: withfig/push-to-fig-autocomplete-action@v2
if: ${{ steps.cli-version.outputs.version }}
with:
token: ${{ secrets.HEROKU_CLI_BOT_TOKEN }}
autocomplete-spec-name: 'heroku'
spec-path: ./packages/cli/spec.ts
integration: oclif
diff-based-versioning: true
new-spec-version: ${{ steps.cli-version.outputs.version }}
pr-body: Automated PR for latest Heroku CLI release
run: echo "version=$(./bin/run --version | sed -rn 's/^heroku\/([0-9\.]+).*$/\1/p')" >> $GITHUB_OUTPUT
- name: Generate Fig Spec
run: cd packages/cli && ./bin/run generate-fig-spec > spec.ts && echo "${{ steps.cli-version.outputs.version }}"
# - name: Create Fig Autocomplete PR
# uses: withfig/push-to-fig-autocomplete-action@v2
# with:
# token: ${{ secrets.HEROKU_CLI_BOT_TOKEN }}
# autocomplete-spec-name: 'heroku'
# spec-path: ./packages/cli/spec.ts
# integration: oclif
# diff-based-versioning: true
# new-spec-version: ${{ needs.get-cli-version.outputs.version }}
# pr-body: Automated PR for latest Heroku CLI release

0 comments on commit 51ad1f8

Please sign in to comment.