Skip to content

Commit

Permalink
WIP output
Browse files Browse the repository at this point in the history
  • Loading branch information
zwhitfield3 committed Mar 25, 2024
1 parent 165339f commit ae0227f
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/publish-to-fig-autocomplete.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ on:
jobs:
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 @@ -25,15 +23,15 @@ jobs:
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')"
run: echo "version=$(./bin/run version | sed -n 's/.*v\([0-9]\+\.[0-9]\+\.[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 "${{ steps.cli-version.outputs.version }}"
# 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: ${{ steps.cli-version.outputs.version }}
# pr-body: Automated PR for latest Heroku CLI release

0 comments on commit ae0227f

Please sign in to comment.