mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
CICD: attempt to read file content in GH yaml
It is very strange that in some yaml files the $(<release-version) construct works just fine, but in others it evaluates to an empty string, even though the file is there an has the correct content. Attempting to get more debugging info and also use a different expression to extract the information. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
8fb504941e
commit
2f464c114d
6 changed files with 8 additions and 6 deletions
2
.github/workflows/android.yml
vendored
2
.github/workflows/android.yml
vendored
|
@ -26,7 +26,7 @@ jobs:
|
|||
if: github.event_name == 'push'
|
||||
run: |
|
||||
bash scripts/get-atomic-buildnr.sh ${{ github.sha }} ${{ secrets.NIGHTLY_BUILDS }} "CICD-release"
|
||||
version=$(<release-version)
|
||||
version=$(cat release-version)
|
||||
echo "version=$version" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: store dummy version and build number for non-push build runs
|
||||
|
|
2
.github/workflows/fedora-copr-build.yml
vendored
2
.github/workflows/fedora-copr-build.yml
vendored
|
@ -30,7 +30,7 @@ jobs:
|
|||
if: github.event_name == 'push'
|
||||
run: |
|
||||
bash scripts/get-atomic-buildnr.sh ${{ github.sha }} ${{ secrets.NIGHTLY_BUILDS }} "CICD-release"
|
||||
version=$(<release-version)
|
||||
version=$(cat release-version)
|
||||
echo "version=$version" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Setup API token for copr-cli
|
||||
|
|
3
.github/workflows/linux-trusty-5.12.yml
vendored
3
.github/workflows/linux-trusty-5.12.yml
vendored
|
@ -25,7 +25,8 @@ jobs:
|
|||
echo "in yml we have PWD $(pwd)"
|
||||
ls -l release-version
|
||||
cat release-version
|
||||
version=$(<release-version)
|
||||
echo
|
||||
version=$(cat release-version)
|
||||
echo "version=$version"
|
||||
echo "version=$version" >> $GITHUB_OUTPUT
|
||||
|
||||
|
|
2
.github/workflows/mac.yml
vendored
2
.github/workflows/mac.yml
vendored
|
@ -19,7 +19,7 @@ jobs:
|
|||
if: github.event_name == 'push'
|
||||
run: |
|
||||
bash scripts/get-atomic-buildnr.sh ${{ github.sha }} ${{ secrets.NIGHTLY_BUILDS }} "CICD-release"
|
||||
version=$(<release-version)
|
||||
version=$(cat release-version)
|
||||
echo "version=$version" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: store dummy version and build number for pull request
|
||||
|
|
2
.github/workflows/post-releasenotes.yml
vendored
2
.github/workflows/post-releasenotes.yml
vendored
|
@ -23,7 +23,7 @@ jobs:
|
|||
run: |
|
||||
bash -x ./scripts/get-atomic-buildnr.sh ${{ github.sha }} ${{ secrets.NIGHTLY_BUILDS }} "CICD-release"
|
||||
bash scripts/create-releasenotes.sh ${{ github.event.head_commit.id }}
|
||||
version=$(<release-version)
|
||||
version=$(cat release-version)
|
||||
echo "version=$version" >> $GITHUB_OUTPUT
|
||||
|
||||
# ironically, we have to upload a file, otherwise this won't create a release with just the release notes
|
||||
|
|
3
.github/workflows/windows.yml
vendored
3
.github/workflows/windows.yml
vendored
|
@ -25,7 +25,8 @@ jobs:
|
|||
echo "in yml we have PWD $(pwd)"
|
||||
ls -l release-version
|
||||
cat release-version
|
||||
version=$(<release-version)
|
||||
echo
|
||||
version=$(cat release-version)
|
||||
echo "version=$version"
|
||||
echo "version=$version" >> $GITHUB_OUTPUT
|
||||
|
||||
|
|
Loading…
Reference in a new issue