diff --git a/.gitea/workflows/build_rhel9.yaml b/.gitea/workflows/build_rhel9.yaml index 25ddeb9..145ea05 100644 --- a/.gitea/workflows/build_rhel9.yaml +++ b/.gitea/workflows/build_rhel9.yaml @@ -27,11 +27,8 @@ jobs: # rpmbuild -ba Pmodules_modules.spec # spectool -g -R Pmodules_bash.spec - mkdir SOURCES - curl -L \ - -H "Authorization: token ${{ secrets.ACCESSKEY }}" \ - -o SOURCES/bash-5.2.37.tar.gz \ - "https://gitea.psi.ch/Pmodules/bash/archive/bash-5.2.37.tar.gz" + + export ACCESSKEY="${{ secrets.ACCESSKEY }}" rpmbuild -ba Pmodules_bash.spec # list generated rpms diff --git a/Pmodules_bash.spec b/Pmodules_bash.spec index 2c87996..0fedafb 100644 --- a/Pmodules_bash.spec +++ b/Pmodules_bash.spec @@ -25,8 +25,7 @@ incorporates useful features from the Korn shell (ksh) and the C shell (csh). Most sh scripts can be run by bash without modification. %prep -%setup -q -n bash-%{version} -token=${ACCESSTOKEN:-} +token=${ACCESSKEY:-} if [ -n "$token" ]; then curl -L \ -H "Authorization: token $token" \