File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 55 tags :
66 - ' *.*.*'
77 branches :
8- - master # Restrict tags to master branch
8+ - master
99
1010jobs :
1111 create_release :
12- if : github.ref == 'refs/heads/master' # Ensure the job only runs for master
12+ if : github.ref == 'refs/heads/master'
1313 runs-on : ubuntu-latest
1414 steps :
1515 - uses : actions/checkout@v3
2626 break
2727 fi
2828 done
29+
30+ # Ensure the variable is available within the current step
31+ source $GITHUB_ENV
32+
2933 if [ -z "$readme_file" ]; then
3034 echo "::error::Readme file not found."
3135 exit 1
7175 zip -r ${REPO_NAME}.zip . -x '*.git*' -x '.github/*' -x '*.distignore*' -x 'CHANGELOG.txt'
7276 echo "repo_name=${REPO_NAME}" >> $GITHUB_ENV
7377
78+ # Source to make repo_name available in subsequent steps
79+ source $GITHUB_ENV
80+
7481 - name : Create Release
7582 id : create_release
7683 uses : actions/create-release@v1
You can’t perform that action at this time.
0 commit comments