-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test trigger. * fix: when create tag, apply workflow_run * change to head_branch
- Loading branch information
Showing
1 changed file
with
13 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} | ||
|
@@ -27,8 +30,9 @@ jobs: | |
destination-repo: 'move-natives' | ||
destination-branch: 'main' | ||
email: '[email protected]' | ||
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 }} | ||
|
@@ -45,4 +49,4 @@ jobs: | |
destination-branch: 'main' | ||
destination-dir: 'library' | ||
email: '[email protected]' | ||
commit-msg: 'bump movevm on release ${{ github.event.release.tag_name }}' | ||
commit-msg: 'bump movevm ${{ github.event.workflow_run.head_branch }}' |