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
|
- name: Determine Golang cache paths
|
||||||
id: golang-path
|
id: golang-path
|
||||||
run: |
|
run: |
|
||||||
echo "::set-output name=build::$(go env GOCACHE)"
|
echo "build=$(go env GOCACHE)" | tee -a $GITHUB_OUTPUT
|
||||||
echo "::set-output name=module::$(go env GOMODCACHE)"
|
echo "module=$(go env GOMODCACHE)" | tee -a $GITHUB_OUTPUT
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Setup Golang cache
|
- 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'
|
if: steps.dornycheck.outputs.src == 'true' || steps.dornycheck.outputs.actions == 'true'
|
||||||
run: |
|
run: |
|
||||||
echo "src or workflow file changes occurred"
|
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
|
- name: Check dorny for changes in website related filepaths
|
||||||
id: websitechecker
|
id: websitechecker
|
||||||
if: steps.dornycheck.outputs.src == 'true' || steps.dornycheck.outputs.website == 'true' || steps.dornycheck.outputs.actions == 'true'
|
if: steps.dornycheck.outputs.src == 'true' || steps.dornycheck.outputs.website == 'true' || steps.dornycheck.outputs.actions == 'true'
|
||||||
run: |
|
run: |
|
||||||
echo "website or workflow file changes occurred"
|
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
|
id: environment
|
||||||
run: |
|
run: |
|
||||||
if ${{ startsWith(github.ref, 'refs/tags/') }}; then
|
if ${{ startsWith(github.ref, 'refs/tags/') }}; then
|
||||||
echo "set-output name=environment::Production"
|
echo "environment=Production" | tee -a $GITHUB_OUTPUT
|
||||||
echo "::set-output name=environment::Production"
|
|
||||||
else
|
else
|
||||||
echo "set-output name=environment::Testing"
|
echo "environment=Testing" | tee -a $GITHUB_OUTPUT
|
||||||
echo "::set-output name=environment::Testing"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Get version string
|
- name: Get version string
|
||||||
id: version
|
id: version
|
||||||
run: |
|
run: |
|
||||||
if ${{ startsWith(github.ref, 'refs/tags/') }}; then
|
if ${{ startsWith(github.ref, 'refs/tags/') }}; then
|
||||||
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
|
||||||
echo "::set-output name=version::$(git describe --exact-match --tags $(git rev-parse HEAD))"
|
|
||||||
else
|
else
|
||||||
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
|
||||||
echo "::set-output name=version::$(echo unreleased-$(git rev-parse --short HEAD))"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Get bucket name for website
|
- name: Get bucket name for website
|
||||||
id: website-bucket
|
id: website-bucket
|
||||||
run: |
|
run: |
|
||||||
if ${{ startsWith(github.ref, 'refs/tags/') }}; then
|
if ${{ startsWith(github.ref, 'refs/tags/') }}; then
|
||||||
echo "set-output name=website-bucket::corsobackup.io"
|
echo "website-bucket=corsobackup.io" | tee -a $GITHUB_OUTPUT
|
||||||
echo "::set-output name=website-bucket::corsobackup.io"
|
|
||||||
else
|
else
|
||||||
echo "set-output name=website-bucket::test-corso-docs"
|
echo "website-bucket=test-corso-docs" | tee -a $GITHUB_OUTPUT
|
||||||
echo "::set-output name=website-bucket::test-corso-docs"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Get cfid for website
|
- name: Get cfid for website
|
||||||
id: website-cfid
|
id: website-cfid
|
||||||
run: |
|
run: |
|
||||||
if ${{ startsWith(github.ref, 'refs/tags/') }}; then
|
if ${{ startsWith(github.ref, 'refs/tags/') }}; then
|
||||||
echo "set-output name=website-cfid::E1W9NGI9YTVZ1A"
|
echo "website-cfid=E1W9NGI9YTVZ1A" | tee -a $GITHUB_OUTPUT
|
||||||
echo "::set-output name=website-cfid::E1W9NGI9YTVZ1A"
|
|
||||||
else
|
else
|
||||||
echo "set-output name=website-cfid::ESFTEIYTIP7Y3"
|
echo "website-cfid=ESFTEIYTIP7Y3" | tee -a $GITHUB_OUTPUT
|
||||||
echo "::set-output name=website-cfid::ESFTEIYTIP7Y3"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user