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
167c7566b9
2
.github/workflows/android.yml
vendored
2
.github/workflows/android.yml
vendored
@ -26,7 +26,7 @@ jobs:
|
|||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
run: |
|
run: |
|
||||||
bash scripts/get-atomic-buildnr.sh ${{ github.sha }} ${{ secrets.NIGHTLY_BUILDS }} "CICD-release"
|
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
|
echo "version=$version" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: store dummy version and build number for non-push build runs
|
- 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'
|
if: github.event_name == 'push'
|
||||||
run: |
|
run: |
|
||||||
bash scripts/get-atomic-buildnr.sh ${{ github.sha }} ${{ secrets.NIGHTLY_BUILDS }} "CICD-release"
|
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
|
echo "version=$version" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Setup API token for copr-cli
|
- 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)"
|
echo "in yml we have PWD $(pwd)"
|
||||||
ls -l release-version
|
ls -l release-version
|
||||||
cat release-version
|
cat release-version
|
||||||
version=$(<release-version)
|
echo
|
||||||
|
version=$(cat release-version)
|
||||||
echo "version=$version"
|
echo "version=$version"
|
||||||
echo "version=$version" >> $GITHUB_OUTPUT
|
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'
|
if: github.event_name == 'push'
|
||||||
run: |
|
run: |
|
||||||
bash scripts/get-atomic-buildnr.sh ${{ github.sha }} ${{ secrets.NIGHTLY_BUILDS }} "CICD-release"
|
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
|
echo "version=$version" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: store dummy version and build number for pull request
|
- 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: |
|
run: |
|
||||||
bash -x ./scripts/get-atomic-buildnr.sh ${{ github.sha }} ${{ secrets.NIGHTLY_BUILDS }} "CICD-release"
|
bash -x ./scripts/get-atomic-buildnr.sh ${{ github.sha }} ${{ secrets.NIGHTLY_BUILDS }} "CICD-release"
|
||||||
bash scripts/create-releasenotes.sh ${{ github.event.head_commit.id }}
|
bash scripts/create-releasenotes.sh ${{ github.event.head_commit.id }}
|
||||||
version=$(<release-version)
|
version=$(cat release-version)
|
||||||
echo "version=$version" >> $GITHUB_OUTPUT
|
echo "version=$version" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
# ironically, we have to upload a file, otherwise this won't create a release with just the release notes
|
# 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)"
|
echo "in yml we have PWD $(pwd)"
|
||||||
ls -l release-version
|
ls -l release-version
|
||||||
cat release-version
|
cat release-version
|
||||||
version=$(<release-version)
|
echo
|
||||||
|
version=$(cat release-version)
|
||||||
echo "version=$version"
|
echo "version=$version"
|
||||||
echo "version=$version" >> $GITHUB_OUTPUT
|
echo "version=$version" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user