Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
charlieporth1 authored Sep 10, 2024
1 parent 2a6c113 commit 01ddcb0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
- id: new_version
name: Early exit if no new version
run: export RELEASE_VERSION=$(curl --silent "https://api.github.com/repos/tailscale/tailscale/tags" | jq -r '.[0].name'); echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV
run: export RELEASE_VERSION=$(curl --silent "https://api.github.com/repos/tailscale/tailscale/tags" | jq '.[] | select(.name | endswith("pre") | not)' | jq -r '.name' | head -n +1)); echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV

- run: export RELEASE_VERSION_CTP_ASUSTOR_TS=$(curl --silent "https://api.github.com/repos/charlieporth1/asustor-tailscale/tags" | jq -r '.[0].name'); echo "RELEASE_VERSION_CTP_ASUSTOR_TS=$RELEASE_VERSION_CTP_ASUSTOR_TS" >> $GITHUB_ENV

Expand All @@ -26,11 +26,6 @@ jobs:

- id: build
if: steps.new_version.conclusion == 'success'
run: export RELEASE_VERSION=$(curl --silent "https://api.github.com/repos/tailscale/tailscale/tags" | jq -r '.[0].name'); echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV
- run: rm -rf tailscale_*.tgz
- run: rm -rf tailscale_*.apk
- run: rm -rf tailscale_*/

- run: sudo chown $USER:$USER -R .
- run: sudo chown $USER:$USER -R .
- run: sudo cp -rf apk/CONTROL/config.json.edit apk/CONTROL/config.json
Expand Down

0 comments on commit 01ddcb0

Please sign in to comment.