From 162c1b4296ff3d31da4ffa30b1405f51d6ba497e Mon Sep 17 00:00:00 2001 From: L3D Date: Tue, 16 Mar 2021 21:16:27 +0100 Subject: [PATCH] update role and manage basic actions --- .github/FUNDING.yml | 1 - .github/galaxy.svg | 416 ++++++++++++++++++++ .github/license.svg | 217 ++++++++++ .github/workflows/ansible-linting-check.yml | 28 ++ .github/workflows/galaxy.yml | 20 + .github/workflows/yamllint.yaml | 24 ++ .gitignore | 1 + README.md | 4 +- meta/main.yml | 11 +- vars/main.yml | 2 +- 10 files changed, 715 insertions(+), 9 deletions(-) create mode 100644 .github/galaxy.svg create mode 100644 .github/license.svg create mode 100644 .github/workflows/ansible-linting-check.yml create mode 100644 .github/workflows/galaxy.yml create mode 100644 .github/workflows/yamllint.yaml create mode 100644 .gitignore diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index fab5174..67818dd 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,5 +1,4 @@ --- -# These are supported funding model platforms github: [do1jlr] liberapay: L3D diff --git a/.github/galaxy.svg b/.github/galaxy.svg new file mode 100644 index 0000000..8ac31f6 --- /dev/null +++ b/.github/galaxy.svg @@ -0,0 +1,416 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.github/license.svg b/.github/license.svg new file mode 100644 index 0000000..4ab6d9a --- /dev/null +++ b/.github/license.svg @@ -0,0 +1,217 @@ + + + + + + image/svg+xml + + + + + + 3D <l3d@c3woc.de> + + + + + MIT License + + + + + + + + + + + + + + + + + + + + + + + + + + + MIT + MIT + + + license + license + + diff --git a/.github/workflows/ansible-linting-check.yml b/.github/workflows/ansible-linting-check.yml new file mode 100644 index 0000000..7973217 --- /dev/null +++ b/.github/workflows/ansible-linting-check.yml @@ -0,0 +1,28 @@ +--- +name: Ansible Lint check + +# yamllint disable-line rule:truthy +on: + push: + branches: '*' + pull_request: + branches: '*' + schedule: + - cron: '42 6 * */1 *' + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Lint Ansible Playbook + uses: ansible/ansible-lint-action@master + with: + targets: "." + # [required] + # Paths to ansible files (i.e., playbooks, tasks, handlers etc..) + args: "" + # [optional] diff --git a/.github/workflows/galaxy.yml b/.github/workflows/galaxy.yml new file mode 100644 index 0000000..b5dc0ec --- /dev/null +++ b/.github/workflows/galaxy.yml @@ -0,0 +1,20 @@ +--- +name: Galaxy release + +# yamllint disable-line rule:truthy +on: + push: + branches: ['main'] + release: + types: ['created'] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v2 + - name: galaxy + uses: robertdebock/galaxy-action@1.1.0 + with: + galaxy_api_key: ${{ secrets.galaxy_api_key }} diff --git a/.github/workflows/yamllint.yaml b/.github/workflows/yamllint.yaml new file mode 100644 index 0000000..ddb5b89 --- /dev/null +++ b/.github/workflows/yamllint.yaml @@ -0,0 +1,24 @@ +--- +name: 'Yamllint GitHub Actions' + +# yamllint disable-line rule:truthy +on: + push: + branches: '*' + pull_request: + branches: '*' + schedule: + - cron: '23 6 * */1 *' + +jobs: + yamllint: + name: 'Yamllint' + runs-on: ubuntu-latest + steps: + - name: 'Checkout' + uses: actions/checkout@master + - name: 'Yamllint' + uses: karancode/yamllint-github-action@master + with: + yamllint_file_or_dir: '.' + yamllint_config_filepath: './.yamllint' diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..16d3c4d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.cache diff --git a/README.md b/README.md index 9661b82..bac0567 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ - xrandr - Ansible role +[![Ansible Galaxy](https://raw.githubusercontent.com/roles-ansible/ansible_role_xrandr_help/main/.github/galaxy.svg?sanitize=true)](https://galaxy.ansible.com/do1jlr/xrandr_help) [![MIT License](https://raw.githubusercontent.com/roles-ansible/ansible_role_xrandr_help/main/.github/license.svg?sanitize=true)](https://github.com/roles-ansible/ansible_role_xrandr_help/blob/main/LICENSE) + + ansible_role_xrandr_help ========================== diff --git a/meta/main.yml b/meta/main.yml index 5f36f5c..d6e898a 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -1,11 +1,11 @@ --- galaxy_info: - author: L3D - description: Install xrandr and their graphical version (arandr) to control your monitors. - license: license (MIT) - min_ansible_version: 2.8 + author: do1jlr role_name: xrandr_help - github_branch: master + description: Install xrandr and their graphical version (arandr) to control your monitors. + license: MIT + min_ansible_version: 2.8 + github_branch: main platforms: - name: Archlinux versions: all @@ -24,7 +24,6 @@ galaxy_info: - monitor - help - hdmi - - i3wm - arch - desktop dependencies: [] diff --git a/vars/main.yml b/vars/main.yml index 0690c9f..442b3c7 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -1,3 +1,3 @@ --- -playbook_version_number: 1025 # should be int +playbook_version_number: 1026 # should be int playbook_version_path: 'role-xrandr_chaos-bodensee_github.com.version'