Skip to content

Commit

Permalink
ci: switching to reused actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dd84ai committed Dec 30, 2024
1 parent d38891b commit 4c9974d
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 30 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/autotag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,13 @@ jobs:
deploy:
runs-on: ubuntu-22.04
steps:
- name: Install Task
run: |
sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin
- name: Install Taskfile
uses: darklab8/infra/.github/actions/install-taskfile@master
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '^1.22.5'
uses: darklab8/infra/.github/actions/install-go@master

- name: Install Autogit
run: |
curl -L $(curl -Ls -o /dev/null -w %{url_effective} https://github.com/darklab8/autogit/releases/latest | sed "s/releases\/tag/releases\/download/")/autogit-linux-amd64 -o /usr/local/bin/autogit && chmod 777 /usr/local/bin/autogit
- name: Install autogit
uses: darklab8/infra/.github/actions/install-autogit@master

- name: Checkout repostiory with commit history!
uses: actions/checkout@v3
Expand All @@ -37,4 +32,4 @@ jobs:
repo: context.repo.repo,
ref: "refs/tags/${{ steps.future_tag.outputs.version }}",
sha: context.sha
})
})
15 changes: 6 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,15 @@ jobs:
runs-on: ubuntu-22.04
steps:

- name: Install Task
run: |
sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin
- name: Install Taskfile
uses: darklab8/infra/.github/actions/install-taskfile@master

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '^1.22.5'
uses: darklab8/infra/.github/actions/install-go@master

- name: Install autogit
uses: darklab8/infra/.github/actions/install-autogit@master

- name: Install Autogit
run: |
curl -L $(curl -Ls -o /dev/null -w %{url_effective} https://github.com/darklab8/autogit/releases/latest | sed "s/releases\/tag/releases\/download/")/autogit-linux-amd64 -o /usr/local/bin/autogit && chmod 777 /usr/local/bin/autogit
- name: Checkout git repo with tags and commits for autogit
uses: actions/checkout@v3
with:
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,13 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Install Task
run: |
sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin
- name: Install Taskfile
uses: darklab8/infra/.github/actions/install-taskfile@master

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '^1.22.5'
uses: darklab8/infra/.github/actions/install-go@master

- name: Setu pdeps
- name: Setup deps
run: |
echo 'ci version' > settings/version.txt
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ jobs:
with:
fetch-depth: 0

- name: Install Autogit
run: |
curl -L $(curl -Ls -o /dev/null -w %{url_effective} https://github.com/darklab8/autogit/releases/latest | sed "s/releases\/tag/releases\/download/")/autogit-linux-amd64 -o /usr/local/bin/autogit && chmod 777 /usr/local/bin/autogit
- name: Set up Go
uses: darklab8/infra/.github/actions/install-go@master
- name: Install autogit
uses: darklab8/infra/.github/actions/install-autogit@master
- name: Validate changelogs
env:
AUTOGIT_CONFIG_VALIDATION_RULES_HEADER_SUBJECT_MIN_WORDS: "2"
Expand Down

0 comments on commit 4c9974d

Please sign in to comment.