Merge pull request #273 from nierdz/dependabot/pip/ansible-9.4.0 #38
Workflow file for this run
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
--- | |
name: RELEASE | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
galaxy: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: set up Python 3.12 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.12 | |
- name: Install ansible | |
run: pip3 install ansible | |
- name: Import role on galaxy | |
shell: bash | |
run: ansible-galaxy role import --token ${{ secrets.GALAXY_API_KEY }} --role-name=nextcloud ${GITHUB_REPOSITORY/\// } | |
release: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Build Changelog | |
id: git-chglog | |
shell: bash | |
run: | | |
curl -o git-chglog_0.10.0_linux_amd64.tar.gz -L https://github.com/git-chglog/git-chglog/releases/download/v0.10.0/git-chglog_0.10.0_linux_amd64.tar.gz | |
tar xvzf git-chglog_0.10.0_linux_amd64.tar.gz git-chglog | |
chmod +x ./git-chglog | |
./git-chglog "${GITHUB_REF##*/}" > changelog.md | |
- name: Create Release | |
uses: actions/create-release@v1 | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: ${{ github.ref }} | |
body_path: changelog.md | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |