Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 6 additions & 10 deletions .github/actions/go_init/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,22 @@ runs:
- name: Set up Go
uses: actions/setup-go@v4

- name: Reset sources
shell: bash
run: rm -Rf sources/

- name: Checkout
uses: actions/checkout@v3
with:
repository: overmindtech/aws-source
path: sources/aws-source
path: ./aws-source

- name: Move sources in place
shell: bash
run: mv -v aws-source ..

- name: Go Generate
shell: bash
run: |
go generate ./...
if [ -z "$(git status --porcelain | grep -v 'T sources/')" ]; then
if [ -z "$(git status --porcelain)" ]; then
echo "No pending changes from 'go generate'"

# undo changes from testing `go generate`
rm -rf sources/
git checkout HEAD -- sources/
else
echo "Pending changes from 'go generate' found, please run 'go generate ./...' and commit the changes"
git status
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
if: ${{ github.event_name == 'pull_request' }}
with:
version: latest
args: release --clean --skip-announce --skip-publish
args: release --clean --snapshot --skip-publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down