Skip to content
This repository has been archived by the owner on Mar 26, 2023. It is now read-only.

Commit

Permalink
replace old refs to repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ashea-code committed Oct 26, 2021
1 parent 895b41f commit 0b0f4c5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build_otp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- id: check-release
name: Check QuinnWilton/beamup
name: Check burrito-elixir/erlang-builder
run: |
if gh api -XHEAD repos/QuinnWilton/beamup/releases/tags/OTP-${{ github.event.inputs.version }}; then
if gh api -XHEAD repos/burrito-elixir/erlang-builder/releases/tags/OTP-${{ github.event.inputs.version }}; then
echo ::set-output name=exists::$(echo true)
else
echo ::set-output name=exists::$(echo false)
Expand All @@ -33,8 +33,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
owner: QuinnWilton
repo: beamup
owner: burrito-elixir
repo: erlang-builder
commitish: main
tag_name: OTP-${{ github.event.inputs.version }}
prerelease: ${{ contains(github.event.inputs.version, 'rc') }}
Expand All @@ -57,8 +57,8 @@ jobs:
- id: asset-exists
name: Check if release asset exists
run: |
release_id=$(gh api repos/QuinnWilton/beamup/releases/tags/OTP-${{ github.event.inputs.version }} | jq .id)
if gh api repos/QuinnWilton/beamup/releases/${release_id}/assets | jq -r '.[].name' | grep ${{ steps.release-name.outputs.name }}; then
release_id=$(gh api repos/burrito-elixir/erlang-builder/releases/tags/OTP-${{ github.event.inputs.version }} | jq .id)
if gh api repos/burrito-elixir/erlang-builder/releases/${release_id}/assets | jq -r '.[].name' | grep ${{ steps.release-name.outputs.name }}; then
echo ::set-output name=exists::$(echo true)
else
echo ::set-output name=exists::$(echo false)
Expand All @@ -72,7 +72,7 @@ jobs:
# - run: mkdir -p tmp/beamup && cd tmp/beamup && mkdir -p ${{ steps.release-name.outputs.name }} && tar czf ${{ steps.release-name.outputs.name }}.tar.gz ${{ steps.release-name.outputs.name }}
# if: ${{ steps.asset-exists.outputs.exists == 'false' }}

- run: gh release upload -R QuinnWilton/beamup OTP-${{ github.event.inputs.version }} tmp/beamup/${{ steps.release-name.outputs.name }}.tar.gz
- run: gh release upload -R burrito-elixir/erlang-builder OTP-${{ github.event.inputs.version }} tmp/beamup/${{ steps.release-name.outputs.name }}.tar.gz
name: Upload asset
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ main() {
install_otp() {
version=$1
release=otp-${version}-$(uname -sm | tr '[:upper:]' '[:lower:]' | tr ' ' '-')
url=https://github.com/QuinnWilton/beamup/releases/download/OTP-$version/$release.tar.gz
url=https://github.com/burrito-elixir/erlang-builder/releases/download/OTP-$version/$release.tar.gz
echo ">> downloading $url"
curl --fail -LO $url
tar xzf $release.tar.gz
Expand Down
4 changes: 2 additions & 2 deletions scripts/sync_otp_releases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ tags() {
gh api repos/$repo/releases --paginate | jq -r '.[].tag_name'
}

my_tags=$(tags QuinnWilton/beamup)
my_tags=$(tags burrito-elixir/erlang-builder)
otp_tags=$(
tags erlang/otp | \
# OTP 23.2+, 23.3+, or 24
Expand All @@ -17,6 +17,6 @@ for i in $otp_tags; do
echo release $i already exists
else
echo "Kicking off build for $i"
gh workflow run -R "QuinnWilton/beamup" build_otp.yml -f version=${i/OTP-/}
gh workflow run -R "burrito-elixir/erlang-builder" build_otp.yml -f version=${i/OTP-/}
fi
done

0 comments on commit 0b0f4c5

Please sign in to comment.