From b221f350b51e84534b6924a03c369692a3ffc3da Mon Sep 17 00:00:00 2001 From: Josue Acevedo Maldonado Date: Tue, 1 Mar 2022 12:39:05 -0600 Subject: [PATCH] update production.yml --- .github/workflows/production.yml | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index 181e54c..96f7c53 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -15,13 +15,6 @@ jobs: sudo apt-get update sudo apt-get install -y git - - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." - - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" - - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." - - name: Check out repository code - uses: actions/checkout@v2 - - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." - - run: echo "🖥️ The workflow is now ready to test your code on the runner." - name: List files in the repository run: | ls -a ${{ github.workspace }} @@ -33,8 +26,29 @@ jobs: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" echo "::set-output name=sha::$(git rev-parse HEAD)" - - name: Another step + - name: Check variables run: | echo "Branch: ${{ steps.vars.outputs.branch }}" echo "Sha: ${{ steps.vars.outputs.sha }}" + - name: Build Changelog + id: github_release + uses: mikepenz/release-changelog-builder-action@v1 + env: + GITHUB_TOKEN: ${{ secrets.API_TOKEN_GITHUB }} + + - name: Create Release + uses: actions/create-release@v1 + with: + tag_name: ${{ github.ref }} + release_name: ${{ github.ref }} + body: ${{steps.github_release.outputs.changelog}} + env: + GITHUB_TOKEN: ${{ secrets.API_TOKEN_GITHUB }} + + - name: Create commit comment + uses: peter-evans/commit-comment@v1 + with: + sha: "${{ steps.vars.outputs.sha }}" + body: | + @JuliaRegistrator register branch=master \ No newline at end of file