Skip to content

Commit

Permalink
test trigger. (#152)
Browse files Browse the repository at this point in the history
* test trigger.

* fix: when create tag, apply workflow_run

* change to head_branch
  • Loading branch information
SeUkKim authored Nov 18, 2024
1 parent 7cafb35 commit 04bbbb9
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
name: publish changed files to move-natives on release
name: Publish changed files to move-natives on tag creation

on:
release:
types: [published]
workflow_run:
workflows: ["Release rust libmovevm"]
types:
- completed

jobs:
copy-files:
name: copy files to move-natives
name: Copy files to move-natives
if: startsWith(github.event.workflow_run.head_branch, 'v') # Check if the run was triggered by a tag, adjust 'v' if needed
runs-on: ubuntu-latest

steps:
- name: checkout movevm repository
- name: Checkout movevm repository
uses: actions/checkout@v4

- name: push files to move-natives
- name: Push files to move-natives
uses: initia-labs/actions/push-to-repo@main
env:
TOKEN_GITHUB: ${{ secrets.PUBLISH_TOKEN }}
Expand All @@ -27,8 +30,9 @@ jobs:
destination-repo: 'move-natives'
destination-branch: 'main'
email: 'infra@initia.xyz'
commit-msg: 'bump movevm on release ${{ github.event.release.tag_name }}'
- name: push shared dynamic libraries to builder.js
commit-msg: 'bump movevm ${{ github.event.workflow_run.head_branch }}'

- name: Push shared dynamic libraries to builder.js
uses: initia-labs/actions/push-to-repo@main
env:
TOKEN_GITHUB: ${{ secrets.PUBLISH_TOKEN }}
Expand All @@ -45,4 +49,4 @@ jobs:
destination-branch: 'main'
destination-dir: 'library'
email: 'infra@initia.xyz'
commit-msg: 'bump movevm on release ${{ github.event.release.tag_name }}'
commit-msg: 'bump movevm ${{ github.event.workflow_run.head_branch }}'

0 comments on commit 04bbbb9

Please sign in to comment.