Skip to content

Commit

Permalink
Fixing GHA deprecated commands for deploy-storybook package (#95)
Browse files Browse the repository at this point in the history
Adding internal reference

Adding changeset
  • Loading branch information
Loraine Barcha Garutti authored Jan 10, 2023
1 parent 13596b1 commit 5c13242
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 15 deletions.
11 changes: 11 additions & 0 deletions .changeset/shy-rocks-talk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
'davinci-github-actions': patch
---

---

- updating docker/metadata-action action version for build-push-image package
- updating internal packages for build-push-release-image and deploy-storybook packages
- updating jenkins-job-trigger-action and actions/github-script action version for deploy-storybook package
- updating actions/github-script action version for extract-env-variables package
- updating google-github-actions/setup-gcloud action version for generate-gql-types package
2 changes: 1 addition & 1 deletion build-push-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ runs:
- name: Docker meta
id: meta
uses: docker/metadata-action@v4.0.1
uses: docker/metadata-action@v4.1.1
with:
images: |
gcr.io/toptal-hub/${{ inputs.image-name }}
Expand Down
4 changes: 2 additions & 2 deletions build-push-release-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ inputs:
runs:
using: composite
steps:
- uses: toptal/davinci-github-actions/yarn-install@v4.4.2
- uses: toptal/davinci-github-actions/yarn-install@v4.8.2

- name: Build
shell: bash
run: yarn build

- uses: toptal/davinci-github-actions/build-push-image@v4.4.2
- uses: toptal/davinci-github-actions/build-push-image@v4.8.2
with:
sha: ${{ inputs.sha }}
image-name: ${{ inputs.repository-name }}-release
Expand Down
17 changes: 8 additions & 9 deletions deploy-storybook/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ runs:

- name: Install Dependencies
if: ${{ inputs.use-prebuilt-package == 'false' && inputs.use-prebuilt-image == 'false' }}
uses: toptal/davinci-github-actions/yarn-install@v4.4.2
uses: toptal/davinci-github-actions/yarn-install@v4.8.2

- name: Generate Types
if: ${{ inputs.generate-types-command != 'false' }}
uses: toptal/davinci-github-actions/[email protected].1
uses: toptal/davinci-github-actions/[email protected].2
with:
generate-types-command: ${{ inputs.generate-types-command }}
gcr-gql-schemas-bucket-token: ${{ env.GCR_GQL_SCHEMAS_BUCKET_TOKEN }}
Expand Down Expand Up @@ -98,7 +98,7 @@ runs:
echo "pr_number=${{ inputs.pr-number }}" >> $GITHUB_OUTPUT
- name: Build and Push Storybook Image
uses: toptal/davinci-github-actions/build-push-image@v4.4.2
uses: toptal/davinci-github-actions/build-push-image@v4.8.2
if: ${{ inputs.use-prebuilt-image == 'false' }}
with:
sha: ${{ inputs.sha }}
Expand All @@ -113,7 +113,7 @@ runs:

- name: Trigger Deploy to Staging
if: ${{ inputs.environment == 'staging' }}
uses: toptal/[email protected].0
uses: toptal/[email protected].1
env:
JENKINS_FOLDER_NAME: ${{ steps.repo.outputs.folder_name }}
REPOSITORY_NAME: ${{ steps.repo.outputs.repository_name }}
Expand All @@ -128,7 +128,7 @@ runs:
}
job_timeout: 1200

- uses: toptal/davinci-github-actions/extract-env-variables@v4.4.2
- uses: toptal/davinci-github-actions/extract-env-variables@v4.8.3
if: ${{ inputs.environment == 'temploy' }}
id: env-variables
with:
Expand All @@ -137,7 +137,7 @@ runs:

- name: Trigger Deploy to Temploy
if: ${{ inputs.environment == 'temploy' }}
uses: toptal/[email protected].0
uses: toptal/[email protected].1
env:
JENKINS_FOLDER_NAME: ${{ steps.repo.outputs.folder_name }}
REPOSITORY_NAME: ${{ steps.repo.outputs.repository_name }}
Expand All @@ -158,7 +158,7 @@ runs:

- name: Post Temploy Link
if: ${{ inputs.environment == 'temploy' }}
uses: actions/github-script@v3.0.0
uses: actions/github-script@v6.3.3
env:
RELEASE: ${{ steps.repo.outputs.release_name }}
PR_NUMBER: ${{ steps.repo.outputs.pr_number }}
Expand All @@ -169,5 +169,4 @@ runs:
const name = ['${{ env.RELEASE }}', '${{ steps.repo.outputs.repository_name }}-storybook'].join('-').substring(0, 45)
const body = `Storybook temploy is available at https://${name}.toptal.rocks :tada:`
const number = issue_number || ${{ env.PR_NUMBER }}
github.issues.createComment({ issue_number: number, owner, repo, body })
github.rest.issues.createComment({ issue_number: number, owner, repo, body })
4 changes: 2 additions & 2 deletions extract-env-variables/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ inputs:
runs:
using: composite
steps:
- name: Exctract Env variables
- name: Extract Env variables
id: env-variables
uses: actions/github-script@v3.0.0
uses: actions/github-script@v6.3.3
with:
github-token: ${{ inputs.github-token }}
result-encoding: string
Expand Down
2 changes: 1 addition & 1 deletion generate-gql-types/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ runs:
create_credentials_file: true

- name: Setup Google cloud toolchain
uses: google-github-actions/setup-gcloud@v0.6.0
uses: google-github-actions/setup-gcloud@v1.0.1

- name: Check types cache
uses: actions/cache@v3
Expand Down

0 comments on commit 5c13242

Please sign in to comment.