Skip to content
Open
Show file tree
Hide file tree
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
37 changes: 7 additions & 30 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,13 @@ on:
- pull_request
jobs:
pre_commit:
runs-on: ubuntu-latest
uses: figment-networks/figment-github-actions/.github/workflows/pre-commit.yaml@89b46e3bd29417a8c1a9129f0a200f63bf98b7e2
with:
python_version: ${{ matrix.python_version }}
strategy:
fail-fast: false
matrix:
python-version:
- "3.8"
- "3.9"
python_version:
- "3.10"
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v23.1
- name: Run Check
uses: pre-commit/action@v3.0.0
with:
extra_args: --files ${{ steps.changed-files.outputs.all_changed_files }}
- name: Checks failed, notification
if: failure()
run: |
echo "Tests Failed"
echo "Run the following command to identify issues"
echo "pre-commit run --files ${{ steps.changed-files.outputs.all_changed_files }}"
- name: Upload log artifacts on failure
if: failure()
uses: actions/upload-artifact@v2
with:
name: pre-commit-py${{ matrix.python-version }}
path: /home/runner/.cache/pre-commit/pre-commit.log
- "3.11"
- "3.12"
4 changes: 2 additions & 2 deletions .github/workflows/role-btrfs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ jobs:
- 2drive-raid0
steps:
- name: Check out the repo
uses: actions/checkout@v2
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c
- name: Install ansible-core
run: |
python -m pip install --upgrade pip wheel
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/role-format.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
- format-xfs
steps:
- name: Check out the repo
uses: actions/checkout@v2
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c
- name: Install ansible-core
run: |
python -m pip install --upgrade pip wheel
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/role-lvg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
- 1drive
steps:
- name: Check out the repo
uses: actions/checkout@v2
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c
- name: Install ansible-core
run: |
python -m pip install --upgrade pip wheel
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/role-mdadm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
- 4drive-raid10
steps:
- name: Check out the repo
uses: actions/checkout@v2
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c
- name: Install ansible-core
run: |
python -m pip install --upgrade pip wheel
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/role-zfs_pool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
- 4drive-raidz
steps:
- name: Check out the repo
uses: actions/checkout@v2
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c
- name: Install ansible-core
run: |
python -m pip install --upgrade pip wheel
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/role-zfs_setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ jobs:
- default
steps:
- name: Check out the repo
uses: actions/checkout@v2
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c
- name: Install ansible-core
run: |
python -m pip install --upgrade pip wheel
Expand Down
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace: cloudnull
name: filesystems

# The version of the collection. Must be compatible with semantic versioning
version: 0.0.4.1
version: 0.0.5

# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
readme: README.md
Expand Down
2 changes: 1 addition & 1 deletion roles/format/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
opts: "{{ format_options | default(omit) }}"
dev: "{{ format_device }}"
when:
- format_fileystem != "none"
- format_filesystem != "none"

- name: Mount block
when:
Expand Down