Skip to content

Commit

Permalink
Fix galaxy.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubrak committed Dec 12, 2024
1 parent fd6109d commit 36d5e26
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 4 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ah_token_refresh.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright 2024 Dynatrace LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: Refresh the Red Hat Automation Hub token
# the token expires every 30 days, so we need to refresh it
on:
schedule:
- cron: '0 12 1,15 * *' # run 12pm on the 1st and 15th of the month
workflow_dispatch:

jobs:
refresh:
uses: ansible/team-devtools/.github/workflows/ah_token_refresh.yml@main
with:
environment: release
secrets:
ah_token: ${{ secrets.AH_TOKEN }}
33 changes: 33 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Copyright 2024 Dynatrace LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

---
name: Release the ansible collection
on:
release:
types: [published]

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Set up environment
uses: ./.github/actions/setup-build-environment
- name: Build and release the collection to Galaxy and Automation Hub
uses: ansible/devtools/.github/workflows/release_collection.yml@main
with:
environment: release
secrets:
ah_token: ${{ secrets.AH_TOKEN }}
ansible_galaxy_api_key: ${{ secrets.ANSIBLE_GALAXY_API_KEY }}
8 changes: 4 additions & 4 deletions galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ readme: README.md
authors:
- Dynatrace LLC
description: Module to install and configure Dynatrace OneAgent deployment
license:
- MIT
license_file: LICENSE
tags:
- dynatrace
- oneagent
Expand All @@ -16,5 +15,6 @@ tags:
repository: https://github.com/Dynatrace/Dynatrace-OneAgent-Ansible
documentation: https://docs.dynatrace.com/docs/setup-and-configuration/dynatrace-oneagent/deployment-orchestration/ansible
build_ignore:
- roles/oneagent/tests
- roles/oneagent/examples
- .github
- .gitignore
- .pre-commit-config.yaml

0 comments on commit 36d5e26

Please sign in to comment.