Skip to content

Commit

Permalink
ci: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dhth committed Aug 18, 2024
1 parent 701c7fe commit 9a03ad3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,3 @@ jobs:
run: ./act3 -f html
env:
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
- name: Test step
run: |
ACT3_VERSION=$(curl -s https://api.github.com/repos/dhth/act3/releases/latest | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/' | sed 's/^v//')
echo "latest version is $ACT3_VERSION"
8 changes: 3 additions & 5 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ concurrency:
group: "pages"
cancel-in-progress: false

env:
ACT3_VERSION: 1.0.0

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -25,8 +22,9 @@ jobs:
uses: actions/checkout@v4
- name: Download act3
run: |
curl -s -OL https://github.com/dhth/act3/releases/download/v${{ env.ACT3_VERSION }}/act3_${{ env.ACT3_VERSION }}_linux_amd64.tar.gz
tar -xzvf act3_${{ env.ACT3_VERSION }}_linux_amd64.tar.gz
LATEST_VERSION=$(curl -s https://api.github.com/repos/dhth/act3/releases/latest | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/' | sed 's/^v//')
curl -s -OL https://github.com/dhth/act3/releases/download/v${LATEST_VERSION}/act3_${LATEST_VERSION}_linux_amd64.tar.gz
tar -xzvf act3_${LATEST_VERSION}_linux_amd64.tar.gz
- name: Generate GH token
id: generate-token
uses: actions/create-github-app-token@v1
Expand Down

0 comments on commit 9a03ad3

Please sign in to comment.