Nit 1204 ldap data refresh remove passwords #31
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: | |
pull_request: | |
types: | |
- closed | |
branches: | |
- main | |
- dev | |
paths-ignore: | |
- "readme.md" | |
- ".gitignore" | |
- ".gitattributes" | |
- ".vscode/**" | |
- ".idea/**" | |
- ".github/**" | |
jobs: | |
build: | |
if: github.event.pull_request.merged == true | |
runs-on: ubuntu-22.04 | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.merge_commit_sha }} | |
fetch-depth: '0' | |
- name: release or prerelease | |
id: release_type | |
run: | | |
if [[ "${{ github.event.pull_request.base.ref }}" == "main" ]]; then | |
echo "This is a release" | |
echo "PRERELEASE=false" >> $GITHUB_OUTPUT | |
else | |
echo "This is a prerelease" | |
echo "PRERELEASE=true" >> $GITHUB_OUTPUT | |
fi | |
- name: Bump version and push tag | |
id: tag | |
uses: anothrNick/[email protected] # Don't use @master or @v1 unless you're happy to test the latest version | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
WITH_V: true | |
PRERELEASE_SUFFIX: dev | |
PRERELEASE: "${{ steps.release_type.outputs.PRERELEASE }}" | |
- name: Create prerelease | |
if: steps.release_type.outputs.PRERELEASE == 'true' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
gh release create ${{ steps.tag.outputs.new_tag }} --title "Dev ${{ steps.tag.outputs.new_tag }}" --prerelease --generate-notes --verify-tag | |
- name: Create release | |
if: steps.release_type.outputs.PRERELEASE == 'false' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
gh release create ${{ steps.tag.outputs.new_tag }} --title "Release ${{ steps.tag.outputs.new_tag }}" --generate-notes --verify-tag |