Skip to content

Commit

Permalink
fix: updating sdk version (#2191)
Browse files Browse the repository at this point in the history
* fix: updating sdk version

* adding manual trigger
  • Loading branch information
franciscolopezsancho authored Aug 21, 2024
1 parent fb99add commit b83658f
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/update-sdk-version.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
name: SDK version update

on:
workflow_dispatch: # for testing
workflow_dispatch: # to trigger manually
workflow_run:
workflows: ["Publish"]
types:
- completed

jobs:
debug:
if: github.event.name != 'workflow_dispatch'
runs-on: ubuntu-22.04
steps:
- name: Debugging
run: |
echo "Conclusion from `Publish` workflow: ${{ github.event.workflow_run.conclusion }}
echo "Tag created from `Publish` workflow: ${{ github.ref }}
open-pr-update-sample:
# run only when publish workflow is successful and it's a tag like `v[xyz]`
if: (github.event.workflow_run.conclusion == 'success' && startsWith(github.ref, 'refs/tags/v')) || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-22.04
# run only when publish workflow is successful and it's a tag
if: github.event.workflow_run.conclusion == 'success' && startsWith(github.ref, 'refs/tags/v')
steps:
- name: Checkout
# https://github.com/actions/checkout/releases
Expand Down

0 comments on commit b83658f

Please sign in to comment.