Skip to content

Commit

Permalink
Fix github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ybykov-a9s committed Dec 13, 2021
1 parent 0d4908a commit 423755d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Auto-Merge
on:
pull_request_review:
branches:
- master
- main
types:
- submitted

Expand Down
17 changes: 12 additions & 5 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ name: Create Release
on:
push:
branches:
- master
- main

jobs:
unit:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- name: Setup Go
uses: actions/setup-go@v1
uses: actions/setup-go@v2.1.4
with:
go-version: 1.14
go-version: 1.15.x
- name: Checkout
uses: actions/checkout@v2
- name: Run Unit Tests
Expand All @@ -24,6 +24,10 @@ jobs:
runs-on: ubuntu-latest
needs: unit
steps:
- name: Setup Go
uses: actions/[email protected]
with:
go-version: 1.15.x
- name: Checkout
uses: actions/checkout@v2
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* || true
Expand All @@ -35,14 +39,17 @@ jobs:
token: ${{ github.token }}
- name: Tag
id: tag
uses: paketo-buildpacks/github-config/actions/tag@main
uses: paketo-buildpacks/github-config/actions/tag/increment-tag@b935ce32a10f97eb94fdad03220dd19c5645a2f0
with:
current_version: ${{ steps.reset.outputs.current_version }}
- name: Package
run: ./scripts/package.sh --version "${{ steps.tag.outputs.tag }}"
- name: Create Release Notes
id: create-release-notes
uses: paketo-buildpacks/github-config/actions/release/notes@main
with:
repo: ${{ github.repository }}
token: ${{ secrets.MS_BOT_GITHUB_TOKEN }}
- name: Create Release
uses: paketo-buildpacks/github-config/actions/release/create@main
with:
Expand All @@ -65,4 +72,4 @@ jobs:
"name": "${{ github.event.repository.name }}-${{ steps.tag.outputs.tag }}.cnb",
"content_type": "application/gzip"
}
]
]

0 comments on commit 423755d

Please sign in to comment.