Merge pull request #4 from codacy/lolgab-patch-1 #10
This file contains hidden or 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: | |
| push: | |
| branches: ["master"] | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@master | |
| with: | |
| # Will fetch all history and tags required to generate version | |
| fetch-depth: 0 | |
| - name: Git Version | |
| id: generate-version | |
| uses: codacy/[email protected] | |
| - name: "Tag version" | |
| run: | | |
| git tag ${{ steps.generate-version.outputs.version }} | |
| git push --tags "https://codacy:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY" | |
| - name: "Push data to pulse" | |
| uses: ./ | |
| with: | |
| args: | | |
| push git deployment \ | |
| --api-key ${{ secrets.PULSE_ORG_PULSE_API_KEY }} \ | |
| --system $GITHUB_REPOSITORY \ | |
| --previous-deployment-ref ${{ steps.generate-version.outputs.previous-version }} \ | |
| --identifier ${{ steps.generate-version.outputs.version }} \ | |
| --timestamp "$(date +%s)" |