I have an old Digital Ocean one click ghost installation. It is running the latest version of ghost, but is on ubuntu 18.04.
I’m trying to get GitHub actions working to sync the theme, but I keep getting an error.
My action file:
name: Deploy Theme
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v3
- name: Deploy Ghost Theme
uses: TryGhost/action-deploy-theme@v1.6.1
with:
api-url: ${{ secrets.GHOST_ADMIN_API_URL }}
api-key: ${{ secrets.GHOST_ADMIN_API_KEY }}
The error:
@tryghost/admin-api: The 'version' parameter has a deprecated format 'canary', please use 'v{major}.{minor}' format instead
What am I doing wrong here?
RyanF
December 12, 2022, 8:05pm
2
I think that error might not be what’s preventing the action from working. Please try updating your syntax to match what’s listed here:
In particular, please update the runs-on: ubuntu-18.04
part to runs-on: ubuntu-22.04
I updated the syntax but getting the same error:
Run TryGhost/action-deploy-theme@v1
@tryghost/admin-api: The 'version' parameter has a deprecated format 'canary', please use 'v{major}.{minor}' format instead
{}
As a note, this is not a warning and is resulting in failed deployment.
I’ve triple check the API and URL - no luck
1 Like
Here are my debug logs:
##[debug]Evaluating condition for step: 'Deploy Ghost Theme'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: Deploy Ghost Theme
##[debug]Loading inputs
##[debug]Evaluating: secrets.GHOST_ADMIN_API_URL
##[debug]Evaluating Index:
##[debug]..Evaluating secrets:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'GHOST_ADMIN_API_URL'
##[debug]=> null
##[debug]Result: null
##[debug]Evaluating: secrets.GHOST_ADMIN_API_KEY
##[debug]Evaluating Index:
##[debug]..Evaluating secrets:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'GHOST_ADMIN_API_KEY'
##[debug]=> null
##[debug]Result: null
##[debug]Loading env
Run TryGhost/action-deploy-theme@v1
@tryghost/admin-api: The 'version' parameter has a deprecated format 'canary', please use 'v{major}.{minor}' format instead
{}
##[debug]Node Action run completed with exit code 1
##[debug]Finishing: Deploy Ghost Theme
1 Like
Jumping in here, and thanks for sharing as well @Izak_Jackson — I hit the same error as well letting me know the
@tryghost/admin-api: The 'version' parameter has a deprecated format 'canary', please use 'v{major}.{minor}' format instead
Screenshot attached. Any thoughts?
I’m having the same error as you guys.
Dou you have any solutions?
RyanF
January 10, 2023, 3:42pm
8
Just wanted to jump in here again. This warning isn’t causing the GitHub Action to fail:
@tryghost/admin-api: The 'version' parameter has a deprecated format 'canary', please use 'v{major}.{minor}' format instead
See this screenshot of a recent deployment. You can see the error followed by the job completing.
There’s something else here preventing the Action from completing. In the screenshots provided, there’s an empty object {}
…
The first step here is ensuring that your GitHub yaml file is up to date and that your GitHub secrets are correct:
I’m unsure as to why mine is also failing.
It looks like your package.json is not valid. Try running it through a json validator, like https://jsonlint.com/
1 Like
pureflo
January 18, 2023, 5:02am
12
Rookie error on my side. All cleaned up and a successful deployment.
2 Likes
RyanF
January 25, 2023, 9:36pm
13
We’ve updated the GitHub Action, so you should no longer see the deprecated warning
error.