-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Update to MorphoCloud/MorphoCloudWorkflow@d5be05b
List of MorphoCloudWorkflow changes: ``` $ git shortlog e52143d..d5be05b --no-merges Jean-Christophe Fillion-Robin (1): feat: Support parallel processing adding lock/unlock to per instance specific workflows muratmaga (1): doc(README): Add Funding Acknowledgments section ``` See MorphoCloud/MorphoCloudWorkflow@e52143d...d5be05b
- Loading branch information
Showing
8 changed files
with
174 additions
and
4 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
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 |
---|---|---|
|
@@ -4,10 +4,12 @@ on: | |
issue_comment: | ||
types: [created] | ||
|
||
# Permissions needed for reacting to IssueOps commands on issues | ||
permissions: | ||
# Permissions needed for reacting to IssueOps commands on issues | ||
issues: write | ||
checks: read | ||
# Permissions needed for lock/unlock | ||
contents: write | ||
|
||
jobs: | ||
control: | ||
|
@@ -18,6 +20,7 @@ jobs: | |
contains(github.event.comment.body, '/shelve') || | ||
contains(github.event.comment.body, '/delete_instance') ) }} | ||
steps: | ||
|
||
- name: unshelve command | ||
id: unshelve_command | ||
uses: github/[email protected] | ||
|
@@ -87,6 +90,15 @@ jobs: | |
|
||
- uses: actions/checkout@v4 | ||
|
||
- name: Acquire lock | ||
uses: actions/lock@v2 | ||
if: always() | ||
with: | ||
path: | ||
lock-${{ vars.MORPHOCLOUD_OS_CLOUD }}-instance-${{ | ||
github.event.issue.number }} | ||
timeout: 3600 | ||
|
||
- name: Control instance | ||
id: control_instance | ||
if: ${{ steps.command.outputs.continue == 'true' }} | ||
|
@@ -100,3 +112,12 @@ jobs: | |
string_encryption_key: ${{ secrets.STRING_ENCRYPTION_KEY }} | ||
mail_server_username: ${{secrets.MAIL_USERNAME}} | ||
mail_server_password: ${{secrets.MAIL_PASSWORD}} | ||
|
||
- name: Release lock | ||
uses: actions/lock@v2 | ||
if: always() | ||
with: | ||
path: | ||
lock-${{ vars.MORPHOCLOUD_OS_CLOUD }}-instance-${{ | ||
github.event.issue.number }} | ||
action: unlock |
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 |
---|---|---|
|
@@ -4,13 +4,18 @@ on: | |
issue_comment: | ||
types: [created] | ||
|
||
permissions: | ||
# Permissions needed for lock/unlock | ||
contents: write | ||
|
||
jobs: | ||
create: | ||
runs-on: self-hosted | ||
if: | ||
${{ !github.event.issue.pull_request && ( | ||
contains(github.event.comment.body, '/create') ) }} | ||
steps: | ||
|
||
- name: create command | ||
id: create_command | ||
uses: github/[email protected] | ||
|
@@ -23,6 +28,15 @@ jobs: | |
|
||
- uses: actions/checkout@v4 | ||
|
||
- name: Acquire lock | ||
uses: actions/lock@v2 | ||
if: always() | ||
with: | ||
path: | ||
lock-${{ vars.MORPHOCLOUD_OS_CLOUD }}-instance-${{ | ||
github.event.issue.number }} | ||
timeout: 3600 | ||
|
||
- name: Add "request:approved" label | ||
uses: actions/github-script@v7 | ||
with: | ||
|
@@ -684,3 +698,12 @@ jobs: | |
setup_instance: ✅ | ||
attach_volume: ✅ | ||
send_email: ✅ | ||
|
||
- name: Release lock | ||
uses: actions/lock@v2 | ||
if: always() | ||
with: | ||
path: | ||
lock-${{ vars.MORPHOCLOUD_OS_CLOUD }}-instance-${{ | ||
github.event.issue.number }} | ||
action: unlock |
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 |
---|---|---|
|
@@ -4,13 +4,18 @@ on: | |
issue_comment: | ||
types: [created] | ||
|
||
permissions: | ||
# Permissions needed for lock/unlock | ||
contents: write | ||
|
||
jobs: | ||
delete_instance_and_volume: | ||
runs-on: self-hosted | ||
if: | ||
${{ !github.event.issue.pull_request && ( | ||
contains(github.event.comment.body, '/delete_all') ) }} | ||
steps: | ||
|
||
- name: delete_instance_and_volume command | ||
id: delete_instance_and_volume_command | ||
uses: github/[email protected] | ||
|
@@ -23,6 +28,15 @@ jobs: | |
|
||
- uses: actions/checkout@v4 | ||
|
||
- name: Acquire lock | ||
uses: actions/lock@v2 | ||
if: always() | ||
with: | ||
path: | ||
lock-${{ vars.MORPHOCLOUD_OS_CLOUD }}-instance-${{ | ||
github.event.issue.number }} | ||
timeout: 3600 | ||
|
||
- name: Delete volume | ||
id: delete_volume | ||
if: | ||
|
@@ -50,3 +64,12 @@ jobs: | |
string_encryption_key: ${{ secrets.STRING_ENCRYPTION_KEY }} | ||
mail_server_username: ${{secrets.MAIL_USERNAME}} | ||
mail_server_password: ${{secrets.MAIL_PASSWORD}} | ||
|
||
- name: Release lock | ||
uses: actions/lock@v2 | ||
if: always() | ||
with: | ||
path: | ||
lock-${{ vars.MORPHOCLOUD_OS_CLOUD }}-instance-${{ | ||
github.event.issue.number }} | ||
action: unlock |
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 |
---|---|---|
|
@@ -4,13 +4,19 @@ on: | |
issue_comment: | ||
types: [created] | ||
|
||
permissions: | ||
# Permissions needed for lock/unlock | ||
contents: write | ||
|
||
jobs: | ||
delete_volume: | ||
runs-on: self-hosted | ||
if: | ||
${{ !github.event.issue.pull_request && ( | ||
contains(github.event.comment.body, '/delete_volume') ) }} | ||
steps: | ||
|
||
|
||
- name: delete_volume command | ||
id: delete_volume_command | ||
uses: github/[email protected] | ||
|
@@ -23,6 +29,15 @@ jobs: | |
|
||
- uses: actions/checkout@v4 | ||
|
||
- name: Acquire lock | ||
uses: actions/lock@v2 | ||
if: always() | ||
with: | ||
path: | ||
lock-${{ vars.MORPHOCLOUD_OS_CLOUD }}-instance-${{ | ||
github.event.issue.number }} | ||
timeout: 3600 | ||
|
||
- name: Delete volume | ||
id: delete_volume | ||
if: ${{ steps.delete_volume_command.outputs.continue == 'true' }} | ||
|
@@ -32,3 +47,12 @@ jobs: | |
issue_number: ${{ github.event.issue.number }} | ||
instance_name_prefix: ${{ vars.INSTANCE_NAME_PREFIX }} | ||
volume_name_suffix: ${{ vars.VOLUME_NAME_SUFFIX }} | ||
|
||
- name: Release lock | ||
uses: actions/lock@v2 | ||
if: always() | ||
with: | ||
path: | ||
lock-${{ vars.MORPHOCLOUD_OS_CLOUD }}-instance-${{ | ||
github.event.issue.number }} | ||
action: unlock |
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
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 |
---|---|---|
|
@@ -4,10 +4,12 @@ on: | |
issue_comment: | ||
types: [created] | ||
|
||
# Permissions needed for reacting to IssueOps commands on issues | ||
permissions: | ||
# Permissions needed for reacting to IssueOps commands on issues | ||
issues: write | ||
checks: read | ||
# Permissions needed for lock/unlock | ||
contents: write | ||
|
||
jobs: | ||
update-issue: | ||
|
@@ -17,6 +19,7 @@ jobs: | |
contains(github.event.comment.body, '/encode_email') || | ||
contains(github.event.comment.body, '/decode_email') ) }} | ||
steps: | ||
|
||
- name: encode_email command | ||
id: encode_email_command | ||
uses: github/[email protected] | ||
|
@@ -41,6 +44,17 @@ jobs: | |
"${{ vars.MORPHOCLOUD_GITHUB_ADMINS }},${{ | ||
github.event.issue.user.login }}" | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- name: Acquire lock | ||
uses: actions/lock@v2 | ||
if: always() | ||
with: | ||
path: | ||
lock-${{ vars.MORPHOCLOUD_OS_CLOUD }}-instance-${{ | ||
github.event.issue.number }} | ||
timeout: 3600 | ||
|
||
- name: Set command metadata | ||
id: command | ||
if: | ||
|
@@ -69,8 +83,6 @@ jobs: | |
DECODE_EMAIL_COMMAND_CONTINUE: | ||
${{ steps.decode_email_command.outputs.continue }} | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- name: Update issue description | ||
if: ${{ steps.command.outputs.continue == 'true' }} | ||
uses: ./.github/actions/update-issue-description | ||
|
@@ -79,3 +91,12 @@ jobs: | |
command_name: ${{ steps.command.outputs.command_name }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
string_encryption_key: ${{ secrets.STRING_ENCRYPTION_KEY }} | ||
|
||
- name: Release lock | ||
uses: actions/lock@v2 | ||
if: always() | ||
with: | ||
path: | ||
lock-${{ vars.MORPHOCLOUD_OS_CLOUD }}-instance-${{ | ||
github.event.issue.number }} | ||
action: unlock |
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