Skip to content

Commit

Permalink
Merge pull request stratum-mining#229 from dennisreimann/update-actions
Browse files Browse the repository at this point in the history
Update actions
  • Loading branch information
pavlenex authored Sep 3, 2024
2 parents 9055350 + 70404b5 commit 61fbb8f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
steps:
# Checkout and setup
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: 'recursive'
submodules: recursive
- name: Setup
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16
# Install and build
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/update-submodule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Update submodule

on:
repository_dispatch:
types:
- update-submodule
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.PAT }}
submodules: recursive
- name: Update module
run: |
git submodule update --init --recursive --checkout -f --remote -- "${{github.event.client_payload.module}}"
git config --global user.name "GitHub Action"
git config --global user.email "[email protected]"
git commit -am "deploy: ${{github.event.client_payload.module}} - ${{github.event.client_payload.sha}}"
git push

0 comments on commit 61fbb8f

Please sign in to comment.