Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
hellais committed Feb 2, 2024
1 parent 73a53c6 commit dbf598e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/deploy_production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
run: |
echo "terraform_plan<<EOF" >> "$GITHUB_OUTPUT"
echo "$ terraform plan" >> "$GITHUB_OUTPUT"
terraform plan -no-color || echo "failed to run terraform plan" >> "$GITHUB_OUTPUT"
terraform plan -no-color >> "$GITHUB_OUTPUT"
echo "EOF" >> "$GITHUB_OUTPUT"
continue-on-error: true

Expand All @@ -80,7 +80,7 @@ jobs:
run: |
echo "terraform_apply<<EOF" >> "$GITHUB_OUTPUT"
echo "$ terraform apply -auto-approve" >> "$GITHUB_OUTPUT"
terraform apply -auto-approve -no-color || echo "failed to run terraform apply" >> "$GITHUB_OUTPUT"
terraform apply -auto-approve -no-color >> "$GITHUB_OUTPUT"
echo "EOF" >> "$GITHUB_OUTPUT"
continue-on-error: true

Expand All @@ -92,8 +92,12 @@ jobs:
git config --global user.name "OONI Github Actions Bot"
git add . >> "$GITHUB_OUTPUT"
git commit -m "skip-terraform: autoupdate terraform outputs" || echo "No changes to commit" >> "$GITHUB_OUTPUT"
git push -u origin ${{ github.head_ref }} >> "$GITHUB_OUTPUT"
BRANCH_NAME="${GITHUB_REF#refs/heads/}"
git push -u origin "${BRANCH_NAME}" >> "$GITHUB_OUTPUT"
echo "EOF" >> "$GITHUB_OUTPUT"
env:
GITHUB_REF: ${{ github.ref }}
GITHUB_HEAD_REF: ${{ github.head_ref }}
continue-on-error: true

- uses: actions/github-script@v6
Expand Down

0 comments on commit dbf598e

Please sign in to comment.