Merge pull request #84 from nagoya-caravan/feature/#71 #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: edit manifest | |
on: | |
push: | |
branches: | |
- develop | |
- feature/#5 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- name: checkout manifest repository | |
uses: actions/checkout@v3 | |
with: | |
repository: nagoya-caravan/hazakura-k8s | |
ref: main | |
token: ${{ secrets.GIT_TOKEN }} | |
- name: edit manifest | |
run: | | |
yq -i '.spec.template.spec.initContainers[1].env[0].value = "${{ github.sha }}"' ./frontend/frontend.yml | |
- name: push | |
run: | | |
git config user.name githubActions | |
git config user.email [email protected] | |
git add . | |
git commit --author=. -m "update src" | |
git push |