Remove usages of ::set-output in Github Actions (#2966)
This has be deprecated in favor of a new format. https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ <!-- PR description--> --- #### Does this PR need a docs update or release note? - [ ] ✅ Yes, it's included - [ ] 🕐 Yes, but in a later PR - [x] ⛔ No #### Type of change <!--- Please check the type of change your PR introduces: ---> - [ ] 🌻 Feature - [ ] 🐛 Bugfix - [ ] 🗺️ Documentation - [ ] 🤖 Supportability/Tests - [x] 💻 CI/Deployment - [ ] 🧹 Tech Debt/Cleanup #### Issue(s) <!-- Can reference multiple issues. Use one of the following "magic words" - "closes, fixes" to auto-close the Github issue. --> * fixes https://github.com/alcionai/corso/issues/1583 #### Test Plan <!-- How will this be tested prior to merging.--> - [ ] 💪 Manual - [ ] ⚡ Unit test - [ ] 💚 E2E
This commit is contained in:
parent
5800e2cba2
commit
e8245fb722
4
.github/actions/go-setup-cache/action.yml
vendored
4
.github/actions/go-setup-cache/action.yml
vendored
@ -37,8 +37,8 @@ runs:
|
||||
- name: Determine Golang cache paths
|
||||
id: golang-path
|
||||
run: |
|
||||
echo "::set-output name=build::$(go env GOCACHE)"
|
||||
echo "::set-output name=module::$(go env GOMODCACHE)"
|
||||
echo "build=$(go env GOCACHE)" | tee -a $GITHUB_OUTPUT
|
||||
echo "module=$(go env GOMODCACHE)" | tee -a $GITHUB_OUTPUT
|
||||
shell: bash
|
||||
|
||||
- name: Setup Golang cache
|
||||
|
||||
4
.github/workflows/_filechange_checker.yml
vendored
4
.github/workflows/_filechange_checker.yml
vendored
@ -42,11 +42,11 @@ jobs:
|
||||
if: steps.dornycheck.outputs.src == 'true' || steps.dornycheck.outputs.actions == 'true'
|
||||
run: |
|
||||
echo "src or workflow file changes occurred"
|
||||
echo ::set-output name=srcfileschanged::true
|
||||
echo srcfileschanged=true >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Check dorny for changes in website related filepaths
|
||||
id: websitechecker
|
||||
if: steps.dornycheck.outputs.src == 'true' || steps.dornycheck.outputs.website == 'true' || steps.dornycheck.outputs.actions == 'true'
|
||||
run: |
|
||||
echo "website or workflow file changes occurred"
|
||||
echo ::set-output name=websitefileschanged::true
|
||||
echo websitefileschanged=true >> $GITHUB_OUTPUT
|
||||
24
.github/workflows/ci.yml
vendored
24
.github/workflows/ci.yml
vendored
@ -100,44 +100,36 @@ jobs:
|
||||
id: environment
|
||||
run: |
|
||||
if ${{ startsWith(github.ref, 'refs/tags/') }}; then
|
||||
echo "set-output name=environment::Production"
|
||||
echo "::set-output name=environment::Production"
|
||||
echo "environment=Production" | tee -a $GITHUB_OUTPUT
|
||||
else
|
||||
echo "set-output name=environment::Testing"
|
||||
echo "::set-output name=environment::Testing"
|
||||
echo "environment=Testing" | tee -a $GITHUB_OUTPUT
|
||||
fi
|
||||
|
||||
- name: Get version string
|
||||
id: version
|
||||
run: |
|
||||
if ${{ startsWith(github.ref, 'refs/tags/') }}; then
|
||||
echo "set-output name=version::$(git describe --exact-match --tags $(git rev-parse HEAD))"
|
||||
echo "::set-output name=version::$(git describe --exact-match --tags $(git rev-parse HEAD))"
|
||||
echo "version=$(git describe --exact-match --tags $(git rev-parse HEAD))" | tee -a $GITHUB_OUTPUT
|
||||
else
|
||||
echo "set-output name=version::$(echo unreleased-$(git rev-parse --short HEAD))"
|
||||
echo "::set-output name=version::$(echo unreleased-$(git rev-parse --short HEAD))"
|
||||
echo "version=$(echo unreleased-$(git rev-parse --short HEAD))" | tee -a $GITHUB_OUTPUT
|
||||
fi
|
||||
|
||||
- name: Get bucket name for website
|
||||
id: website-bucket
|
||||
run: |
|
||||
if ${{ startsWith(github.ref, 'refs/tags/') }}; then
|
||||
echo "set-output name=website-bucket::corsobackup.io"
|
||||
echo "::set-output name=website-bucket::corsobackup.io"
|
||||
echo "website-bucket=corsobackup.io" | tee -a $GITHUB_OUTPUT
|
||||
else
|
||||
echo "set-output name=website-bucket::test-corso-docs"
|
||||
echo "::set-output name=website-bucket::test-corso-docs"
|
||||
echo "website-bucket=test-corso-docs" | tee -a $GITHUB_OUTPUT
|
||||
fi
|
||||
|
||||
- name: Get cfid for website
|
||||
id: website-cfid
|
||||
run: |
|
||||
if ${{ startsWith(github.ref, 'refs/tags/') }}; then
|
||||
echo "set-output name=website-cfid::E1W9NGI9YTVZ1A"
|
||||
echo "::set-output name=website-cfid::E1W9NGI9YTVZ1A"
|
||||
echo "website-cfid=E1W9NGI9YTVZ1A" | tee -a $GITHUB_OUTPUT
|
||||
else
|
||||
echo "set-output name=website-cfid::ESFTEIYTIP7Y3"
|
||||
echo "::set-output name=website-cfid::ESFTEIYTIP7Y3"
|
||||
echo "website-cfid=ESFTEIYTIP7Y3" | tee -a $GITHUB_OUTPUT
|
||||
fi
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user