Skip to content

Update to latest version (#11) #9

Update to latest version (#11)

Update to latest version (#11) #9

Workflow file for this run

name: Release
'on':
push:
tags:
- '*'
defaults:
run:
working-directory: 'bcook254.vaultwarden'
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check out the codebase.
uses: actions/checkout@v3
with:
path: 'bcook254.vaultwarden'
- name: Get tags.
id: tags
shell: bash
run: |
git fetch --tags origin
previous="$(git tag -l | sort -V --reverse | sed -n 2p)"
echo "PREVIOUS=$previous" >> $GITHUB_OUTPUT
- name: Create release.
uses: softprops/action-gh-release@v2
with:
body: |
**Full Changelog**: https://github.com/${{ github.repository }}/compare/${{ steps.tags.outputs.PREVIOUS }}...${{ github.ref_name }}
- name: Trigger a new import on Galaxy.
run: >-
ansible-galaxy role import --api-key ${{ secrets.GALAXY_API_KEY }}
$(echo ${{ github.repository }} | cut -d/ -f1) $(echo ${{ github.repository }} | cut -d/ -f2)