1010 required : true
1111
1212env :
13- UPSTREAM_API : https://api.github.com/repos/flatwhatson/emacs
14- UPSTREAM_BRANCH : pgtk-nativecomp
15- UPSTREAM_REPO : https://github.com/flatwhatson/emacs
16- UPSTREAM_SRC : https://raw.githubusercontent.com/flatwhatson/emacs/pgtk-nativecomp
13+ OLD_COMMIT_N : ${{ github.event.inputs.old_commit_n }}
14+ NEW_COMMIT_N : ${{ github.event.inputs.new_commit_n }}
1715
1816jobs :
1917 check :
2018 runs-on : ubuntu-20.04
21- env :
22- OLD_COMMIT_N : ${{ github.event.inputs.old_commit_n }}
23- NEW_COMMIT_N : ${{ github.event.inputs.new_commit_n }}
2419 steps :
2520 - name : Checkout the repo
2621 uses : actions/checkout@v2
2722 - name : Check last version
2823 run : bash ./ci/check-last-version.bash
24+ - name : Import environment variables
25+ shell : bash
26+ run : |
27+ while read line; do
28+ echo "$line" >> $GITHUB_ENV
29+ done < .env
2930 - name : Set env vars
3031 id : var
3132 run : . ./ci/set-env-vars.bash
@@ -39,12 +40,16 @@ jobs:
3940 image : mpsq/emacs-builder:latest
4041 options : --user root
4142 env :
42- OLD_COMMIT_N : ${{ github.event.inputs.old_commit_n }}
43- NEW_COMMIT_N : ${{ github.event.inputs.new_commit_n }}
4443 PKG_VERSION : ${{ needs.check.outputs.pkg_version }}
4544 steps :
4645 - name : Checkout the repo
4746 uses : actions/checkout@v2
47+ - name : Import environment variables
48+ shell : bash
49+ run : |
50+ while read line; do
51+ echo "$line" >> $GITHUB_ENV
52+ done < .env
4853 - name : Patch glibc
4954 run : bash ./ci/patch-glibc.bash
5055 - name : Build artifacts
5762 with :
5863 tag_name : ${{ needs.check.outputs.pkg_version }}
5964 release_name : Release ${{ needs.check.outputs.pkg_version }}
60- body_path : /home/pcr /body.md
65+ body_path : ${{ env.HOME }} /body.md
6166 draft : false
6267 prerelease : false
6368 - name : Upload release asset
6772 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6873 with :
6974 upload_url : ${{ steps.create_release.outputs.upload_url }}
70- asset_path : /home/pcr /${{ needs.check.outputs.pkg_version }}.tar.gz
75+ asset_path : ${{ env.HOME }} /${{ needs.check.outputs.pkg_version }}.tar.gz
7176 asset_name : ${{ needs.check.outputs.pkg_version }}.tar.gz
7277 asset_content_type : application/gzip
7378 - name : Push to AUR
0 commit comments