Skip to content

Commit

Permalink
Tweak migration from hubot to GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrst88 committed Jun 6, 2023
1 parent cc965bc commit fa51f07
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/deploy.chat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
uses: ./.github/workflows/setup.runtime.yml
with:
find-latest-config: true
create-deployment: true
environment: ${{ inputs.environment }}
secrets:
github-token: ${{ secrets.ZKSYNC_ADMIN_BOT_ORG_REPO_WRITE }}
Expand All @@ -32,12 +33,12 @@ jobs:
name: "echo vars"
steps:
- run:
echo "cluster - ${{ needs.setup.outputs.cluster }}"
echo "config-tag -${{ needs.setup.outputs.config-tag }}"
echo "environment -${{ needs.setup.outputs.environment }}"
echo "release-namespace -${{ needs.setup.outputs.release-namespace }}"
echo "deployment- id -${{ github.event.deployment.id }}"
echo "sha-short -${{ needs.setup.outputs.sha-short }}"
echo "cluster - ${{ needs.setup.outputs.cluster }} \n"
echo "config-tag - ${{ needs.setup.outputs.config-tag }} \n"
echo "environment - ${{ needs.setup.outputs.environment }} \n"
echo "release-namespace - ${{ needs.setup.outputs.release-namespace }} \n"
echo "deployment- id - ${{ github.event.deployment.id }} \n"
echo "sha-short - ${{ needs.setup.outputs.sha-short }} \n"

# update:
# name: Update
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/setup.runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,16 @@ jobs:
with:
token: ${{ github.token }}
environment: ${{ inputs.environment }}
- name: Generate output with git tag
id: get_partsed_git_tag
run: |
git_tag="${GITHUB_REF#refs/*/}"
echo "::set-output name=id::${git_tag}"
- name: Match the tag vX.Y.Z-rN pattern
uses: actions-ecosystem/action-regex-match@9e6c4fb3d5e898f505be7a1fb6e7b0a278f6665b # v2
id: regex
with:
text: ${{ github.ref }}
text: ${{ steps.get_partsed_git_tag.outputs.id }}
regex: '^(v\d+\.\d+\.\d+)(-r\d+)?$'
- name: Find the latest config "-rN" tag
uses: dysnix/find-latest-tag@4138bcb046c9e693926b6e12798fae730a27be85 # v2
Expand Down

0 comments on commit fa51f07

Please sign in to comment.