Skip to content

Commit

Permalink
chore: nightly releases (#818)
Browse files Browse the repository at this point in the history
  • Loading branch information
UncleGedd committed Jul 18, 2024
1 parent ec498e3 commit fdd8021
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/nightly-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ permissions:
contents: read

jobs:
# test:
# permissions:
# packages: write
# uses: ./.github/workflows/release-tests.yaml
test:
permissions:
packages: write
uses: ./.github/workflows/release-tests.yaml

build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -41,8 +41,7 @@ jobs:
push:
runs-on: ubuntu-latest
environment: release-nightly
# needs: test
needs: build
needs: test
permissions:
contents: write
steps:
Expand Down
4 changes: 2 additions & 2 deletions hack/create-nightly-tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ repositoryId=$(gh api graphql -f query='
}' | jq -r '.data.repository.id')


# get existing tag and save to existingTag var
# get existing tag and save to existingRefId var
existingRefId=$(gh api graphql -f query='
{
repository(owner: "defenseunicorns", name: "uds-cli") {
Expand All @@ -38,7 +38,7 @@ existingRefId=$(gh api graphql -f query='
}
}' | jq -r '.data.repository.ref.id')

# remove any existing nightly tags
# remove any existing nightly tags
gh api graphql -f query='
mutation DeleteRef {
deleteRef(input:{refId:"'$existingRefId'"}) {
Expand Down

0 comments on commit fdd8021

Please sign in to comment.