From 0fa53b4a7cc1891adb938a06f8b5d0213a3c418d Mon Sep 17 00:00:00 2001 From: VictorFZ Date: Wed, 23 Aug 2023 16:09:34 -0300 Subject: [PATCH] ci --- .github/workflows/main.yml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 90bba76765..5208fb616c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,11 +1,9 @@ name: Test and Publish on: - pull_request_target: - types: - - closed - branches: - - 'master' + push: + branches: [ master ] + defaults: run: shell: bash @@ -40,16 +38,14 @@ jobs: needs: test env: LAST_COMMITTER_EMAIL: $(git log -1 --pretty=format:'%ae') - BOT_NAME: Bornlogic Bot - BOT_EMAIL: bornlogic-github-bot@bornlogic.com - BOT_TOKEN: secrets.BOT_ACCESS_TOKEN + BOT_NAME: Actions + BOT_EMAIL: actions@bornlogic.com steps: - name: Checkout uses: actions/checkout@v2 with: fetch-depth: 0 - token: ${{ env.BOT_TOKEN }} - name: Install .NET Core for Versionize uses: actions/setup-dotnet@v1 @@ -70,11 +66,10 @@ jobs: run: | git config --global user.name ${{ env.BOT_NAME }} git config --global user.email ${{ env.BOT_EMAIL }} - git remote set-url origin https://x-access-token:${{ env.BOT_TOKEN }}@github.com/$GITHUB_REPOSITORY + git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY git checkout "${GITHUB_REF:11}" dotnet tool install --global Versionize --version 1.8.0 versionize --skip-dirty && git push --follow-tags origin "${GITHUB_REF:11}" - - name: Pack if: ${{ success() }} run: dotnet pack --configuration Release -o output @@ -86,4 +81,4 @@ jobs: dotnet nuget push "output/*.nupkg" \ --source https://nuget.pkg.github.com/bornlogic/index.json \ --api-key ${{ secrets.GITHUB_TOKEN }} \ - --skip-duplicate --no-symbols \ No newline at end of file + --skip-duplicate --no-symbols