Skip to content

Commit

Permalink
Remove env ref
Browse files Browse the repository at this point in the history
  • Loading branch information
gururajsh committed Oct 21, 2024
1 parent 33feecb commit e90a01d
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions .github/workflows/release-update-repos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,15 @@ jobs:
runs-on: ubuntu-latest
env:
VERSION_MAJOR: 8
if: ${{ github.action_repository != 'cloudfoundry/cli' }}
GH_TOKEN: ${{ github.token }}
outputs:
secrets-environment: ${{ steps.set-secrets-environment.outputs.secrets-environment }}

version-build: ${{ steps.parse-semver.outputs.version-build }}
version-major: ${{ env.VERSION_MAJOR }}
version-minor: ${{ steps.parse-semver.outputs.version-minor }}
version-patch: ${{ steps.parse-semver.outputs.version-patch }}
claw-url: ${{ steps.set-claw-url.outputs.claw-url }}

steps:
- name: Set environment
id: set-secrets-environment
run: echo "secrets-environment=PROD" >> "${GITHUB_OUTPUT}"

- name: Set CLAW URL
id: set-claw-url
run: echo "claw-url=https://packages.cloudfoundry.org" >> "${GITHUB_OUTPUT}"
Expand Down Expand Up @@ -70,7 +64,6 @@ jobs:
name: Update Homebrew Repository
runs-on: ubuntu-latest
needs: setup
environment: ${{ needs.setup.outputs.secrets-environment }}
env:
CLAW_URL: ${{ needs.setup.outputs.claw-url }}
VERSION_BUILD: ${{ needs.setup.outputs.version-build }}
Expand Down Expand Up @@ -215,7 +208,6 @@ jobs:
needs:
- setup
- update-homebrew
environment: ${{ needs.setup.outputs.secrets-environment }}
env:
CLAW_URL: ${{ needs.setup.outputs.claw-url }}
VERSION_BUILD: ${{ needs.setup.outputs.version-build }}
Expand Down Expand Up @@ -243,7 +235,6 @@ jobs:
name: Update Debian Repository
runs-on: ubuntu-20.04
needs: setup
environment: ${{ needs.setup.outputs.secrets-environment }}
env:
CLAW_URL: ${{ needs.setup.outputs.claw-url }}
VERSION_BUILD: ${{ needs.setup.outputs.version-build }}
Expand All @@ -253,7 +244,6 @@ jobs:
- name: Setup
run: |
echo "VERSION_BUILD: ${VERSION_BUILD}"
echo "Environment: ${ENVIRONMENT}"
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -319,7 +309,6 @@ jobs:
needs:
- setup
- update-deb
environment: ${{ needs.setup.outputs.secrets-environment }}
env:
CLAW_URL: ${{ needs.setup.outputs.claw-url }}
VERSION_BUILD: ${{ needs.setup.outputs.version-build }}
Expand Down Expand Up @@ -351,7 +340,6 @@ jobs:
update-rpm:
name: Update RPM Repository
runs-on: ubuntu-latest
environment: ${{ needs.setup.outputs.secrets-environment }}
needs: setup
env:
CLAW_URL: ${{ needs.setup.outputs.claw-url }}
Expand All @@ -360,11 +348,8 @@ jobs:
steps:

- name: Setup
env:
ENVIRONMENT: ${{ github.event.inputs.environment }}
run: |
echo "VERSION_BUILD: ${VERSION_BUILD}"
echo "Environment: ${ENVIRONMENT}"
# TODO: fix backup
# - name: Download current RPM repodata
Expand Down Expand Up @@ -448,7 +433,6 @@ jobs:
runs-on: ubuntu-latest
container:
image: fedora
environment: ${{ needs.setup.outputs.secrets-environment }}
env:
CLAW_URL: ${{ needs.setup.outputs.claw-url }}
VERSION_BUILD: ${{ needs.setup.outputs.version-build }}
Expand Down Expand Up @@ -478,7 +462,6 @@ jobs:
run:
shell: pwsh
needs: setup
environment: ${{ needs.setup.outputs.secrets-environment }}
env:
CLAW_URL: ${{ needs.setup.outputs.claw-url }}
VERSION_BUILD: ${{ needs.setup.outputs.version-build }}
Expand All @@ -488,7 +471,6 @@ jobs:
- name: Setup
run: |
echo "VERSION_BUILD: ${VERSION_BUILD}"
echo "Environment: ${ENVIRONMENT}"
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -547,7 +529,6 @@ jobs:
needs:
- setup
- update-windows
environment: ${{ needs.setup.outputs.secrets-environment }}
env:
VERSION_BUILD: ${{ needs.setup.outputs.version-build }}
VERSION_MAJOR: ${{ needs.setup.outputs.version-major }}
Expand Down

0 comments on commit e90a01d

Please sign in to comment.