Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test trigger. #152

Merged
merged 3 commits into from
Nov 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}'
Loading