Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
List of MorphoCloudWorkflow changes:

```
$ git shortlog d5be05b..dff0766 --no-merges
Jean-Christophe Fillion-Robin (1):
      fix: Use "github/lock" instead of invalid "actions/lock"
```

See MorphoCloud/MorphoCloudWorkflow@d5be05b...dff0766
  • Loading branch information
jcfr committed Feb 3, 2025
1 parent c39bb51 commit 3694042
Show file tree
Hide file tree
Showing 8 changed files with 52 additions and 57 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/control-instance-from-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@ jobs:
control:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4

- name: Acquire lock
uses: actions/lock@v2
uses: github/lock@v2
if: always()
with:
path:
lock-${{ vars.MORPHOCLOUD_OS_CLOUD }}-instance-${{
inputs.issue_number }}
timeout: 3600

- uses: actions/checkout@v4

- name: Control instance
run: |
gh issue comment $ISSUE_NUMBER \
Expand All @@ -69,7 +69,7 @@ jobs:
mail_server_password: ${{secrets.MAIL_PASSWORD}}

- name: Release lock
uses: actions/lock@v2
uses: github/lock@v2
if: always()
with:
path:
Expand Down
19 changes: 9 additions & 10 deletions .github/workflows/control-instance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ jobs:
contains(github.event.comment.body, '/shelve') ||
contains(github.event.comment.body, '/delete_instance') ) }}
steps:
- name: Acquire lock
uses: github/lock@v2
if: always()
with:
path:
lock-${{ vars.MORPHOCLOUD_OS_CLOUD }}-instance-${{
github.event.issue.number }}
timeout: 3600

- name: unshelve command
id: unshelve_command
Expand Down Expand Up @@ -90,15 +98,6 @@ 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' }}
Expand All @@ -114,7 +113,7 @@ jobs:
mail_server_password: ${{secrets.MAIL_PASSWORD}}

- name: Release lock
uses: actions/lock@v2
uses: github/lock@v2
if: always()
with:
path:
Expand Down
19 changes: 9 additions & 10 deletions .github/workflows/create-instance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ jobs:
${{ !github.event.issue.pull_request && (
contains(github.event.comment.body, '/create') ) }}
steps:
- name: Acquire lock
uses: github/lock@v2
if: always()
with:
path:
lock-${{ vars.MORPHOCLOUD_OS_CLOUD }}-instance-${{
github.event.issue.number }}
timeout: 3600

- name: create command
id: create_command
Expand All @@ -28,15 +36,6 @@ 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:
Expand Down Expand Up @@ -700,7 +699,7 @@ jobs:
send_email:

- name: Release lock
uses: actions/lock@v2
uses: github/lock@v2
if: always()
with:
path:
Expand Down
19 changes: 9 additions & 10 deletions .github/workflows/delete-instance-and-volume.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ jobs:
${{ !github.event.issue.pull_request && (
contains(github.event.comment.body, '/delete_all') ) }}
steps:
- name: Acquire lock
uses: github/lock@v2
if: always()
with:
path:
lock-${{ vars.MORPHOCLOUD_OS_CLOUD }}-instance-${{
github.event.issue.number }}
timeout: 3600

- name: delete_instance_and_volume command
id: delete_instance_and_volume_command
Expand All @@ -28,15 +36,6 @@ 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:
Expand Down Expand Up @@ -66,7 +65,7 @@ jobs:
mail_server_password: ${{secrets.MAIL_PASSWORD}}

- name: Release lock
uses: actions/lock@v2
uses: github/lock@v2
if: always()
with:
path:
Expand Down
20 changes: 9 additions & 11 deletions .github/workflows/delete-volume.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@ jobs:
${{ !github.event.issue.pull_request && (
contains(github.event.comment.body, '/delete_volume') ) }}
steps:

- name: Acquire lock
uses: github/lock@v2
if: always()
with:
path:
lock-${{ vars.MORPHOCLOUD_OS_CLOUD }}-instance-${{
github.event.issue.number }}
timeout: 3600

- name: delete_volume command
id: delete_volume_command
Expand All @@ -29,15 +36,6 @@ 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' }}
Expand All @@ -49,7 +47,7 @@ jobs:
volume_name_suffix: ${{ vars.VOLUME_NAME_SUFFIX }}

- name: Release lock
uses: actions/lock@v2
uses: github/lock@v2
if: always()
with:
path:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/update-issue-from-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,17 @@ jobs:
control:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4

- name: Acquire lock
uses: actions/lock@v2
uses: github/lock@v2
if: always()
with:
path:
lock-${{ vars.MORPHOCLOUD_OS_CLOUD }}-instance-${{
inputs.issue_number }}
timeout: 3600

- uses: actions/checkout@v4

- name: Add comment
run: |
gh issue comment $ISSUE_NUMBER \
Expand All @@ -62,7 +62,7 @@ jobs:
string_encryption_key: ${{ secrets.STRING_ENCRYPTION_KEY }}

- name: Release lock
uses: actions/lock@v2
uses: github/lock@v2
if: always()
with:
path:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/update-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,8 @@ jobs:
"${{ vars.MORPHOCLOUD_GITHUB_ADMINS }},${{
github.event.issue.user.login }}"

- uses: actions/checkout@v4

- name: Acquire lock
uses: actions/lock@v2
uses: github/lock@v2
if: always()
with:
path:
Expand Down Expand Up @@ -83,6 +81,8 @@ 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
Expand All @@ -93,7 +93,7 @@ jobs:
string_encryption_key: ${{ secrets.STRING_ENCRYPTION_KEY }}

- name: Release lock
uses: actions/lock@v2
uses: github/lock@v2
if: always()
with:
path:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/validate-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ jobs:
env:
EVENT_NAME: ${{ github.event_name }}

- uses: actions/checkout@v4

- name: Acquire lock
uses: actions/lock@v2
uses: github/lock@v2
if: always()
with:
path:
lock-${{ vars.MORPHOCLOUD_OS_CLOUD }}-instance-${{
steps.collect_inputs.outputs.issue_number }}
timeout: 3600

- uses: actions/checkout@v4

- name: Extract fields
id: extract
uses: ./.github/actions/extract-issue-fields
Expand Down Expand Up @@ -245,7 +245,7 @@ jobs:
See details [here](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}).
- name: Release lock
uses: actions/lock@v2
uses: github/lock@v2
if: always()
with:
path:
Expand Down

0 comments on commit 3694042

Please sign in to comment.