View profile - add 'View Profile' button for mentors to access their own profile #27
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: Changelog | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
changelog: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Generate Changelog | |
id: changelog | |
uses: conventional-changelog-action@v1 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
output-file: CHANGELOG.md | |
preset: angular # You can choose a preset or configure your own | |
- name: Create Release | |
if: ${{ github.ref == 'refs/heads/main' && steps.changelog.outputs.changes != '' }} | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.sha }} | |
release_name: Release ${{ github.sha }} | |
body: | | |
### Changelog | |
$(cat CHANGELOG.md) # Include the generated changelog here | |
- name: Commit Changelog | |
if: ${{ steps.changelog.outputs.changes != '' }} | |
uses: EndBug/add-and-commit@v9 | |
with: | |
author_name: "GitHub Actions" | |
author_email: "[email protected]" | |
message: "Update changelog" |