Skip to content

Commit

Permalink
fix: correct valueFile
Browse files Browse the repository at this point in the history
  • Loading branch information
geokrety-bot committed Aug 7, 2023
1 parent 79265e6 commit 0e1bd3e
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/version-set.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
run: |
echo GITHUB_REF_NAME: $GITHUB_REF_NAME
[ -f source/.versionset ] || { echo ".versionset file missing"; exit 1; }
echo "version_set_name=$(cat source/.versionset)" >> $GITHUB_OUTPUT
echo "version_set_name=$(cat source/.versionset)" | tee $GITHUB_OUTPUT
- name: Checkout version-set repo
uses: actions/checkout@v3
Expand All @@ -31,19 +31,23 @@ jobs:
- name: Update Version-Set
uses: fjogeleit/yaml-update-action@main
with:
valueFile: 'main.yaml'
# propertyPath: '${{ steps.vars.outputs.version_set_name }}.docker_tag'
# value: $GITHUB_REF_NAME
valueFile: 'main.yml'
changes: |
{
"${{ steps.vars.outputs.version_set_name }}.docker_tag": "$GITHUB_REF_NAME",
"${{ steps.vars.outputs.version_set_name }}.git_url": "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY"
}
repository: geokrety/justatest2
branch: deployment/$GITHUB_REPOSITORY/$GITHUB_REF_NAME
targetBranch: main

token: ${{ secrets.GH_TOKEN }}
workDir: versionset

createPR: true
branch: deployment/$GITHUB_REPOSITORY/$GITHUB_REF_NAME
commitUserName: geokrety-bot
commitUserEmail: [email protected]
GIT_COMMITTER_NAME: geokrety-bot
GIT_COMMITTER_EMAIL: [email protected]
message: 'Update $GITHUB_REPOSITORY version to $GITHUB_REF_NAME'
token: ${{ secrets.GITHUB_TOKEN }}
workDir: versionset

0 comments on commit 0e1bd3e

Please sign in to comment.